diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acf6f46..1d6c3c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,5 +31,8 @@ jobs: with: python-version: "3.12" + - name: Install project and dev dependencies + run: python -m pip install -e '.[dev]' + - name: Run local checks run: ./scripts/check.sh diff --git a/scripts/check.sh b/scripts/check.sh index f3a0337..1ed2c27 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -7,6 +7,9 @@ python -m compileall -q src tests printf '\n== unit tests ==\n' PYTHONPATH=src python -m unittest discover -s tests -p 'test_*.py' +printf '\n== ruff ==\n' +python -m ruff check . + printf '\n== text hygiene ==\n' python - <<'PY' from __future__ import annotations