Skip to content

Commit ddaa305

Browse files
committed
Modernize project for Python 3.10+ and add ruff
- Update build backend from poetry.masonry.api to poetry-core - Require Python >=3.10, update classifiers to 3.10-3.13 - Replace legacy dev-dependencies with poetry group.dev.dependencies - Drop black/pylint, add ruff (linter + formatter) - Configure ruff with E/F/I/UP rules and line-length 120 - Fix lint issues: isinstance checks, import sorting, string wrapping - Update CI workflow to modern action versions and Python matrix - Regenerate poetry.lock with compatible dependencies
1 parent c566dbd commit ddaa305

9 files changed

Lines changed: 226 additions & 613 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: Test
22

3-
on: [push, workflow_dispatch]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
python-version: [3.7, 3.8, 3.9, "3.10"]
11+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1212
extras: ["", '--extras "full"']
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-python@v1
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
1717
with:
1818
python-version: ${{ matrix.python-version }}
19-
- uses: Gr1N/setup-poetry@v7
20-
- uses: actions/cache@v2
19+
- uses: Gr1N/setup-poetry@v9
20+
- uses: actions/cache@v4
2121
with:
2222
path: ~/.cache/pypoetry/virtualenvs
2323
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.extras }}-poetry-${{ hashFiles('poetry.lock') }}
2424

25-
- name: Install depedencies with all extras combinations
26-
run: poetry install --no-dev ${{ matrix.extras }} && poetry run pip install pytest
25+
- name: Install dependencies with all extras combinations
26+
run: poetry install --without dev ${{ matrix.extras }} && poetry run pip install pytest
2727

2828
- run: poetry run pytest

0 commit comments

Comments
 (0)