Skip to content

Commit b8d15fe

Browse files
nejchJohnVillalovos
authored andcommitted
chore(ci): replace commitlint with commitizen
1 parent 882fe7a commit b8d15fe

File tree

6 files changed

+15
-19
lines changed

6 files changed

+15
-19
lines changed

.commitlintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@ env:
1919
PY_COLORS: 1
2020

2121
jobs:
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/)

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ docs/_build
1515
venv/
1616

1717
# Include tracked hidden files and directories in search and diff tools
18-
!.commitlintrc.json
1918
!.dockerignore
2019
!.env
2120
!.github/

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ repos:
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

requirements-lint.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
argcomplete==2.0.0
1+
argcomplete<=2.0.0
22
black==22.3.0
3+
commitizen==2.24.0
34
flake8==4.0.1
45
isort==5.10.1
56
mypy==0.950

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ deps = -r{toxinidir}/requirements-lint.txt
5151
commands =
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]
5562
basepython = python3
5663
deps = -r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy