File tree Expand file tree Collapse file tree 6 files changed +15
-19
lines changed
Expand file tree Collapse file tree 6 files changed +15
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919 PY_COLORS : 1
2020
2121jobs :
22- commitlint :
22+ lint :
2323 runs-on : ubuntu-latest
2424 steps :
2525 - uses : actions/checkout@v3
2626 with :
2727 fetch-depth : 0
28- - uses : wagoid/commitlint-github-action@v4
29-
30- linters :
31- runs-on : ubuntu-latest
32- steps :
33- - uses : actions/checkout@v3
3428 - uses : actions/setup-python@v3
3529 - run : pip install --upgrade tox
30+ - name : Run commitizen
31+ run : tox -e cz
3632 - name : Run black code formatter (https://black.readthedocs.io/en/stable/)
3733 run : tox -e black -- --check
3834 - name : Run flake8 (https://flake8.pycqa.org/en/latest/)
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ docs/_build
1515venv /
1616
1717# Include tracked hidden files and directories in search and diff tools
18- ! .commitlintrc.json
1918! .dockerignore
2019! .env
2120! .github /
Original file line number Diff line number Diff line change 66 rev : 22.3.0
77 hooks :
88 - id : black
9- - repo : https://github.com/alessandrojcm/commitlint-pre-commit-hook
10- rev : v8.0 .0
9+ - repo : https://github.com/commitizen-tools/commitizen
10+ rev : v2.24 .0
1111 hooks :
12- - id : commitlint
13- additional_dependencies : ['@commitlint/config-conventional']
12+ - id : commitizen
1413 stages : [commit-msg]
1514 - repo : https://github.com/pycqa/flake8
1615 rev : 4.0.1
Original file line number Diff line number Diff line change 1- argcomplete= =2.0.0
1+ argcomplete< =2.0.0
22black==22.3.0
3+ commitizen==2.24.0
34flake8==4.0.1
45isort==5.10.1
56mypy==0.950
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ deps = -r{toxinidir}/requirements-lint.txt
5151commands =
5252 pylint {posargs} gitlab/
5353
54+ [testenv:cz]
55+ basepython = python3
56+ envdir ={toxworkdir}/lint
57+ deps = -r{toxinidir}/requirements-lint.txt
58+ commands =
59+ cz check --rev-range 65ecadc..HEAD # cz is fast, check from first valid commit
60+
5461[testenv:twine-check]
5562basepython = python3
5663deps = -r{toxinidir}/requirements.txt
You can’t perform that action at this time.
0 commit comments