Skip to content

Commit 5136bba

Browse files
committed
ci: add exclude parameter to flake8
1 parent e2cb9da commit 5136bba

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/codestyle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
- name: Lint with flake8
2222
run: |
2323
# stop the build if there are code styling problems. The GitHub editor is 127 chars wide.
24-
flake8 . --count --max-line-length=127 --show-source --statistics
24+
uv run flake8 . --count --max-line-length=127 --show-source --statistics --exclude .venv,__pycache__
2525
- name: Check type hints
26-
run: mypy .
26+
run: uv run mypy .

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
run: uv sync --all-extras
3131
- name: Test
3232
run: python tests/runtests.py
33+
- name: Build
34+
run: uv build
3335

3436
test_py37:
3537
runs-on: ubuntu-latest
@@ -42,3 +44,5 @@ jobs:
4244
run: uv sync --all-extras
4345
- name: Test
4446
run: python3.7 tests/runtests.py
47+
- name: Build
48+
run: uv build --python=python3.7

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ ignore_missing_imports = true
6464
[build-system]
6565
requires = ["pdm-backend"]
6666
build-backend = "pdm.backend"
67+
68+
[tool.pdm.scripts]
69+
style = "flake8 . --count --max-line-length=127 --show-source --statistics --exclude .venv,__pycache__"
70+
type = "mypy ."
71+
check = {composite = ["style", "type {args}"]}

0 commit comments

Comments
 (0)