feat: conventional commit git hook

This commit is contained in:
ChillerDragon 2023-06-04 11:52:38 +02:00
parent 4fd648025f
commit e4118eaa84
3 changed files with 17 additions and 1 deletions

8
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,8 @@
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 0319903f0ab451c059b7159ae841e7c378be1c79
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, ci, test]

View file

@ -133,6 +133,7 @@ cd twnet_parser
python -m venv venv
source venv/bin/activate
pip install -r requirements/dev.txt
pre-commit install --hook-type commit-msg
```
## tests and linting

View file

@ -5,11 +5,15 @@ bleach==6.0.0
build==0.10.0
certifi==2022.12.7
cffi==1.15.1
cfgv==3.3.1
charset-normalizer==3.1.0
cryptography==39.0.2
dill==0.3.6
distlib==0.3.6
docutils==0.19
exceptiongroup==1.1.1
filelock==3.12.0
identify==2.5.24
idna==3.4
importlib-metadata==6.0.0
iniconfig==2.0.0
@ -25,10 +29,12 @@ mdurl==0.1.2
more-itertools==9.1.0
mypy==1.1.1
mypy-extensions==1.0.0
nodeenv==1.8.0
packaging==23.0
pkginfo==1.9.6
platformdirs==3.1.1
platformdirs==3.5.1
pluggy==1.0.0
pre-commit==3.3.2
pycparser==2.21
Pygments==2.14.0
pylint==2.17.0
@ -48,6 +54,7 @@ twine==4.0.2
typing-inspect==0.8.0
typing_extensions==4.5.0
urllib3==1.26.15
virtualenv==20.23.0
webencodings==0.5.1
wrapt==1.15.0
zipp==3.15.0