Skip to content

Commit 8a4f250

Browse files
authored
Merge pull request #31 from hhatto/update-python-version-and-use-ruff-for-format
modernize 2025.08
2 parents 6a63297 + c0472de commit 8a4f250

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10']
18+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10', 'pypy3.11']
1919

2020
steps:
2121
- uses: actions/checkout@v5
@@ -29,15 +29,15 @@ jobs:
2929
python -m pip install .
3030
python -m pip install ".[dev]"
3131
- name: Install pyarrow
32-
if: matrix.python-version == '3.11'
32+
if: matrix.python-version == '3.13'
3333
run: |
3434
python -m pip install pyarrow
3535
- name: Lint with ruff
3636
run: |
3737
ruff check .
3838
- name: Check code format with black
3939
run: |
40-
black --check --diff .
40+
ruff format --check --diff .
4141
- name: Test with pytest
4242
run: |
4343
pytest

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ run tests::
177177

178178
run linter::
179179

180-
$ ruff .
180+
$ ruff check .
181181

182182

183183
run formatter::
184184

185-
$ black --diff .
185+
$ ruff format --check --diff .
186186

187187

188188
Links

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Repository = "https://github.com/hhatto/poyonga"
3131
dev = [
3232
"ruff",
3333
"pytest",
34-
"black",
3534
]
3635

3736
[tool.setuptools]
@@ -45,10 +44,10 @@ requires = ["setuptools"]
4544
build-backend = "setuptools.build_meta"
4645

4746
[tool.ruff]
48-
select = [
47+
lint.select = [
4948
"E", "W", "F", "I", "C", "B",
5049
]
51-
ignore = [
50+
lint.ignore = [
5251
"E501",
5352
"B008",
5453
"C901",
@@ -57,6 +56,3 @@ extend-exclude = [
5756
"examples",
5857
]
5958
line-length = 120
60-
61-
[tool.black]
62-
line-length = 120

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{38,39,310,311,312}, pypy310
2+
envlist = py{39,310,311,312,313}, pypy{310,311}
33

44
[testenv]
55
deps=pytest

0 commit comments

Comments
 (0)