@@ -13,19 +13,19 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 python-version :
16- - " 3.10 "
16+ - " 3.12 "
1717
1818 steps :
19- - uses : actions/checkout@v3
19+ - uses : actions/checkout@v4
2020
21- - name : Install poetry
21+ - name : Install Poetry
2222 run : pipx install poetry
2323
24- - name : Configure poetry virtualenv
24+ - name : Configure Poetry virtualenv
2525 run : poetry config virtualenvs.in-project true
2626
2727 - name : Set up Python ${{ matrix.python-version }}
28- uses : actions/setup-python@v4
28+ uses : actions/setup-python@v5
2929 with :
3030 python-version : ${{ matrix.python-version }}
3131 cache : poetry
@@ -35,22 +35,17 @@ jobs:
3535 - name : Install dependencies
3636 run : poetry install --no-interaction
3737
38- - name : Lint flake8
39- run : |
40- poetry run pre-commit run --hook-stage manual flake8 --all-files --show-diff-on-failure
38+ - name : Check Poetry config and lockfile
39+ run : poetry run pre-commit run poetry-check --all-files
4140
42- - name : Check black
43- run : |
44- poetry run pre-commit run --hook-stage manual black --all-files --show-diff-on-failure
41+ - name : Lint (ruff)
42+ run : poetry run ruff check . --config pyproject.toml --output-format=github --no-fix
4543
46- - name : Check mypy
47- run : |
48- poetry run pre-commit run --hook-stage manual mypy --all-files
44+ - name : Formatting (ruff)
45+ run : poetry run pre-commit run ruff-format --all-files --show-diff-on-failure
4946
50- - name : Check syntax update
51- run : |
52- poetry run pre-commit run --hook-stage manual pyupgrade --all-files
47+ - name : Typing (pyright)
48+ run : poetry run pre-commit run pyright --all-files
5349
54- - name : Test pytest
55- run : |
56- poetry run pytest
50+ - name : Test
51+ run : poetry run pytest tests
0 commit comments