Skip to content

Commit 21f4dbf

Browse files
committed
feat: Added CZ and Pre Commit config files
1 parent fae171c commit 21f4dbf

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitpod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ tasks:
1111
before: cd docs
1212
init: yarn install
1313
command: yarn start
14+
15+
- name: Initialize `cz` and `pre-commit`
16+
init: pip install -r requirements-dev.txt
17+
command: pre-commit install && pre-commit run
1418

1519
ports:
1620
- port: 3000

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- hooks:
3+
- id: commitizen
4+
stages:
5+
- commit-msg
6+
repo: https://github.com/commitizen-tools/commitizen
7+
rev: v2.20.3
8+
9+
- repo: https://github.com/ambv/black
10+
rev: 21.12b0
11+
hooks:
12+
- id: black
13+
language_version: python3.8

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tool]
2+
[tool.commitizen]
3+
name = "cz_conventional_commits"
4+
version = "0.9"
5+
tag_format = "v$version"

0 commit comments

Comments
 (0)