Skip to content

Commit c3d20af

Browse files
committed
Fix CI and add 3.13 as target
Signed-off-by: Bernát Gábor <[email protected]>
1 parent bf1fff5 commit c3d20af

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
py:
23+
- "3.13"
2324
- "3.12"
2425
- "3.11"
2526
- "3.10"
@@ -73,9 +74,9 @@ jobs:
7374
file_handler.write(env)
7475
shell: python
7576
- name: setup test suite
76-
run: tox -vvvv --notest
77+
run: tox run -vv --notest --skip-missing-interpreters false
7778
- name: run test suite
78-
run: tox --skip-pkg-install
79+
run: tox run --skip-pkg-install
7980

8081
check:
8182
name: tox env ${{ matrix.tox_env }}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.0.1"]
1717
- repo: https://github.com/tox-dev/tox-ini-fmt
18-
rev: "1.3.1"
18+
rev: "1.3.2"
1919
hooks:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.6.3"
27+
rev: "v0.6.4"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: 3.10",
3333
"Programming Language :: Python :: 3.11",
3434
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
3536
"Topic :: Internet",
3637
"Topic :: Software Development :: Libraries",
3738
"Topic :: System",
@@ -40,11 +41,11 @@ dynamic = [
4041
"version",
4142
]
4243
dependencies = [
43-
"importlib-resources>=6.4; python_version<'3.9'",
44+
"importlib-resources>=6.4.4; python_version<'3.9'",
4445
"packaging>=24.1",
4546
"tox<5,>=4.18",
4647
"typing-extensions>=4.12.2; python_version<'3.10'",
47-
"uv<1,>=0.2.35",
48+
"uv<1,>=0.4.7",
4849
]
4950
optional-dependencies.test = [
5051
"covdefaults>=2.3",
@@ -95,8 +96,8 @@ lint.ignore = [
9596
"S104", # Possible binding to all interface
9697
]
9798
lint.per-file-ignores."tests/**/*.py" = [
98-
"D", # don"t care about documentation in tests
99-
"FBT", # don"t care about booleans as positional arguments in tests
99+
"D", # don't care about documentation in tests
100+
"FBT", # don't care about booleans as positional arguments in tests
100101
"INP001", # no implicit namespace
101102
"PLC2701", # private import is fine
102103
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
@@ -116,6 +117,9 @@ builtin = "clear,usage,en-GB_to_en-US"
116117
write-changes = true
117118
count = true
118119

120+
[tool.pyproject-fmt]
121+
max_supported_python = "3.13"
122+
119123
[tool.coverage]
120124
html.show_contexts = true
121125
html.skip_covered = false
@@ -141,7 +145,7 @@ run.plugins = [
141145
]
142146

143147
[tool.mypy]
144-
python_version = "3.11"
148+
python_version = "3.12"
145149
show_error_codes = true
146150
strict = true
147151
overrides = [

tox.ini

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
[tox]
22
requires =
33
tox>=4.2
4+
tox-uv>=1.11.2
45
env_list =
56
fix
6-
py312
7-
py311
8-
py310
9-
py39
10-
py38
117
type
128
readme
9+
3.13
10+
3.12
11+
3.11
12+
3.10
13+
3.9
14+
3.8
1315
skip_missing_interpreters = true
1416

1517
[testenv]
@@ -32,7 +34,7 @@ commands =
3234
description = run static analysis and style check using flake8
3335
skip_install = true
3436
deps =
35-
pre-commit>=3.8
37+
pre-commit-uv>=4.1
3638
pass_env =
3739
HOMEPATH
3840
PROGRAMDATA
@@ -42,7 +44,7 @@ commands =
4244
[testenv:type]
4345
description = run type check on code base
4446
deps =
45-
mypy==1.11.1
47+
mypy==1.11.2
4648
set_env =
4749
{tty:MYPY_FORCE_COLOR = 1}
4850
commands =
@@ -53,7 +55,7 @@ commands =
5355
description = check that the package metadata is correct
5456
skip_install = true
5557
deps =
56-
build[virtualenv]>=1.2.1
58+
build[virtualenv]>=1.2.2
5759
twine>=5.1.1
5860
set_env =
5961
{tty:FORCE_COLOR = 1}
@@ -68,5 +70,5 @@ package = editable
6870
extras =
6971
test
7072
commands =
71-
uv pip freeze
73+
uv pip tree
7274
python -c 'import sys; print(sys.executable)'

0 commit comments

Comments
 (0)