File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -64,3 +64,8 @@ ignore_missing_imports = true
6464[build-system ]
6565requires = [" pdm-backend" ]
6666build-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}" ]}
You can’t perform that action at this time.
0 commit comments