| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 882fe7a commit b8d15fe
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,20 +19,16 @@ env: | |||
| 19 | 19 | PY_COLORS: 1 | |
| 20 | 20 | ||
| 21 | 21 | jobs: | |
| 22 | - commitlint: | ||
| 22 | + lint: | ||
| 23 | 23 | runs-on: ubuntu-latest | |
| 24 | 24 | steps: | |
| 25 | 25 | - uses: actions/checkout@v3 | |
| 26 | 26 | with: | |
| 27 | 27 | 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 | ||
| 34 | 28 | - uses: actions/setup-python@v3 | |
| 35 | 29 | - run: pip install --upgrade tox | |
| 30 | + - name: Run commitizen | ||
| 31 | + run: tox -e cz | ||
| 36 | 32 | - name: Run black code formatter (https://black.readthedocs.io/en/stable/) | |
| 37 | 33 | run: tox -e black -- --check | |
| 38 | 34 | - 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 | |||
| 15 | 15 | venv/ | |
| 16 | 16 | ||
| 17 | 17 | # Include tracked hidden files and directories in search and diff tools | |
| 18 | - !.commitlintrc.json | ||
| 19 | 18 | !.dockerignore | |
| 20 | 19 | !.env | |
| 21 | 20 | !.github/ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,10 @@ repos: | |||
| 6 | 6 | rev: 22.3.0 | |
| 7 | 7 | hooks: | |
| 8 | 8 | - 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 | ||
| 11 | 11 | hooks: | |
| 12 | - - id: commitlint | ||
| 13 | - additional_dependencies: ['@commitlint/config-conventional'] | ||
| 12 | + - id: commitizen | ||
| 14 | 13 | stages: [commit-msg] | |
| 15 | 14 | - repo: https://github.com/pycqa/flake8 | |
| 16 | 15 | rev: 4.0.1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | - argcomplete==2.0.0 | ||
| 1 | + argcomplete<=2.0.0 | ||
| 2 | 2 | black==22.3.0 | |
| 3 | + commitizen==2.24.0 | ||
| 3 | 4 | flake8==4.0.1 | |
| 4 | 5 | isort==5.10.1 | |
| 5 | 6 | mypy==0.950 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,6 +51,13 @@ deps = -r{toxinidir}/requirements-lint.txt | |||
| 51 | 51 | commands = | |
| 52 | 52 | pylint {posargs} gitlab/ | |
| 53 | 53 | ||
| 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 | + | ||
| 54 | 61 | [testenv:twine-check] | |
| 55 | 62 | basepython = python3 | |
| 56 | 63 | deps = -r{toxinidir}/requirements.txt | |
| Back | FazBrowse Home | New Git URL |
0 commit comments