Skip to content

Commit 9e70325

Browse files
committed
CI: sync black and isort version with pre-commit hook using poetry
1 parent 4f97be0 commit 9e70325

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/lint_python.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ jobs:
88
- uses: actions/setup-python@v4
99
with:
1010
python-version: '3.10.12'
11-
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety
11+
12+
- run: pip install poetry
13+
- name: Install same versions as in pre-commit hook
14+
run: poetry install --with dev
15+
- run: poetry run pre-commit run --all-files
16+
17+
- run: pip install bandit codespell flake8 mypy pytest pyupgrade safety
1218
- run: bandit --recursive --skip B101 .
13-
- run: black --check .
1419
- run: codespell --ignore-words-list= Bu
1520
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1621
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --show-source --statistics
17-
- run: isort --check-only --profile black .
1822
- run: pip install -r requirements.txt
1923
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
2024
- run: pytest . || pytest --doctest-modules . || true

0 commit comments

Comments
 (0)