Skip to content

Commit e95bd81

Browse files
committed
Bump tools and dependencies and support 3.13
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 880f318 commit e95bd81

File tree

4 files changed

+37
-28
lines changed

4 files changed

+37
-28
lines changed

.github/workflows/check.yml

Lines changed: 7 additions & 6 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"
@@ -50,10 +51,10 @@ jobs:
5051
with codecs.open(os.environ["GITHUB_ENV"], "a", "utf-8") as file_handler:
5152
file_handler.write(env)
5253
shell: python
53-
- name: Setup test suite
54-
run: tox -vv --notest
55-
- name: Run test suite
56-
run: tox --skip-pkg-install
54+
- name: setup test suite
55+
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }}
56+
- name: run test suite
57+
run: tox run --skip-pkg-install -e ${{ matrix.py }}
5758
env:
5859
CI_RUN: "yes"
5960

@@ -78,8 +79,8 @@ jobs:
7879
with:
7980
python-version: "3.12"
8081
- name: Install tox
81-
run: python -m pip install tox
82+
run: python -m pip install tox-uv
8283
- name: Setup test suite
83-
run: tox -vv --notest -e ${{ matrix.tox_env }}
84+
run: tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
8485
- name: Run test suite
8586
run: tox --skip-pkg-install -e ${{ matrix.tox_env }}

.pre-commit-config.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,34 @@ repos:
88
rev: 0.29.2
99
hooks:
1010
- id: check-github-workflows
11-
args: [ "--verbose" ]
11+
args: ["--verbose"]
1212
- repo: https://github.com/codespell-project/codespell
1313
rev: v2.3.0
1414
hooks:
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"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
2323
rev: "2.2.1"
2424
hooks:
2525
- id: pyproject-fmt
26-
additional_dependencies: ["tox>=4.13"]
2726
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.6.3"
27+
rev: "v0.6.4"
2928
hooks:
3029
- id: ruff-format
3130
- id: ruff
3231
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
32+
- repo: https://github.com/rbubley/mirrors-prettier
33+
rev: "v3.3.3"
34+
hooks:
35+
- id: prettier
36+
additional_dependencies:
37+
38+
- "@prettier/[email protected]"
3339
- repo: meta
3440
hooks:
3541
- id: check-hooks-apply

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "hatchling.build"
33
requires = [
44
"hatch-vcs>=0.4",
5-
"hatchling>=1.21.1",
5+
"hatchling>=1.25",
66
]
77

88
[project]
@@ -30,20 +30,21 @@ classifiers = [
3030
"Programming Language :: Python :: 3.10",
3131
"Programming Language :: Python :: 3.11",
3232
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
3334
"Programming Language :: Python :: Implementation :: CPython",
3435
"Topic :: Software Development :: Libraries :: Python Modules",
3536
]
3637
dynamic = [
3738
"version",
3839
]
3940
dependencies = [
40-
"pytest>=8.0.1",
41+
"pytest>=8.3.2",
4142
"tomli>=2.0.1; python_version<'3.11'",
4243
]
4344
optional-dependencies.test = [
4445
"covdefaults>=2.3",
45-
"coverage>=7.4.2",
46-
"pytest-mock>=3.12",
46+
"coverage>=7.6.1",
47+
"pytest-mock>=3.14",
4748
]
4849
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
4950
urls.Source = "https://github.com/pytest-dev/pytest-env"
@@ -93,6 +94,9 @@ builtin = "clear,usage,en-GB_to_en-US"
9394
write-changes = true
9495
count = true
9596

97+
[tool.pyproject-fmt]
98+
max_supported_python = "3.13"
99+
96100
[tool.coverage]
97101
run.source = [
98102
"pytest_env",

tox.ini

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[tox]
22
requires =
33
tox>=4.2
4+
tox-uv>=1.11.3
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
1314
skip_missing_interpreters = true
1415

1516
[testenv]
@@ -33,7 +34,7 @@ commands =
3334
description = run static analysis and style check using flake8
3435
skip_install = true
3536
deps =
36-
pre-commit>=3.2.
37+
pre-commit-uv>=4.1
3738
pass_env =
3839
HOMEPATH
3940
PROGRAMDATA
@@ -43,9 +44,7 @@ commands =
4344
[testenv:type]
4445
description = run type check on code base
4546
deps =
46-
mypy==1.8
47-
set_env =
48-
{tty:MYPY_FORCE_COLOR = 1}
47+
mypy==1.11.2
4948
commands =
5049
mypy --strict src
5150
mypy --strict tests
@@ -54,11 +53,11 @@ commands =
5453
description = check that the long description is valid
5554
skip_install = true
5655
deps =
57-
build[virtualenv]>=1.0.3
58-
twine>=5
56+
build[uv]>=1.2.2
57+
twine>=5.1.1
5958
change_dir = {toxinidir}
6059
commands =
61-
python -m build -o {envtmpdir} .
60+
pyproject-build --installer uv -o {envtmpdir} .
6261
twine check {envtmpdir}/*
6362

6463
[testenv:dev]
@@ -67,6 +66,5 @@ package = editable
6766
extras =
6867
test
6968
commands =
70-
python -m pip list --format=columns
69+
uv pip tree
7170
python -c 'import sys; print(sys.executable)'
72-
uv_seed = true

0 commit comments

Comments
 (0)