Skip to content

Commit f349f95

Browse files
authored
Merge pull request #379 from languitar/feature/python-3.12
Modernize Python version support
2 parents 98b5fad + 926cc0e commit f349f95

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
max-parallel: 4
5454
matrix:
55-
python-version: ["3.9", "3.10", "3.11"]
55+
python-version: ["3.10", "3.11", "3.12"]
5656

5757
steps:
5858
- name: Clone repo

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ requires = ["setuptools", "wheel"]
33

44
[tool.ruff]
55
src = ["src"]
6+
target-version = "py310"
7+
8+
[tool.ruff.lint]
69
select = [
710
"E",
811
"F",
@@ -62,7 +65,7 @@ ignore = [
6265
"TRY200",
6366
]
6467

65-
[tool.ruff.per-file-ignores]
68+
[tool.ruff.lint.per-file-ignores]
6669
"test_passgithelper.py" = [
6770
# Allow hard-coded passwords in tests
6871
"S105",
@@ -77,5 +80,5 @@ ignore = [
7780
"SLF001",
7881
]
7982

80-
[tool.ruff.pydocstyle]
83+
[tool.ruff.lint.pydocstyle]
8184
convention = "google"

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = coverage-clean,test-py{39,310,311}, check, coverage
2+
envlist = coverage-clean,test-py{310,311,312}, check, coverage
33

44
[testenv]
55
extras = test
@@ -18,7 +18,7 @@ commands = coverage erase
1818
depends =
1919

2020
[testenv:coverage]
21-
depends = test-py{39,310,311}
21+
depends = test-py{39,310,311,312}
2222
deps =
2323
coverage
2424
skip_install = true
@@ -40,6 +40,6 @@ commands =
4040

4141
[gh-actions]
4242
python =
43-
3.9: py39, coverage
4443
3.10: py310, coverage
4544
3.11: py311, coverage
45+
3.12: py312, coverage

0 commit comments

Comments
 (0)