Skip to content

Commit

Permalink
Add 3.13 to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Sep 7, 2024
1 parent 9138e15 commit 5f2d86f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 26 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
fail-fast: false
matrix:
py:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
Expand All @@ -43,6 +44,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
- name: Pick environment to run
run: |
import os; import platform; import sys; from pathlib import Path
Expand All @@ -52,7 +54,7 @@ jobs:
file_handler.write(env)
shell: python
- name: Setup test suite
run: tox r -vv --notest
run: tox r -vv --notest --skip-missing-interpreters false
- name: Run test suite
run: tox r --skip-pkg-install
env:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: codespell
additional_dependencies: ["tomli>=2.0.1"]
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "1.3.1"
rev: "1.3.2"
hooks:
- id: tox-ini-fmt
args: ["-p", "fix"]
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.3"
rev: "v0.6.4"
hooks:
- id: ruff-format
- id: ruff
Expand Down
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dynamic = [
"version",
]
dependencies = [
"cachetools>=5.4",
"cachetools>=5.5",
"chardet>=5.2",
"colorama>=0.4.6",
"filelock>=3.15.4",
Expand All @@ -62,17 +62,17 @@ dependencies = [
"virtualenv>=20.26.3",
]
optional-dependencies.docs = [
"furo>=2024.7.18",
"sphinx>=7.4.7",
"sphinx-argparse-cli>=1.16",
"sphinx-autodoc-typehints>=2.2.3",
"furo>=2024.8.6",
"sphinx>=8.0.2",
"sphinx-argparse-cli>=1.17",
"sphinx-autodoc-typehints>=2.4",
"sphinx-copybutton>=0.5.2",
"sphinx-inline-tabs>=2023.4.21",
"sphinxcontrib-towncrier>=0.2.1a0",
"towncrier>=23.11",
"towncrier>=24.8",
]
optional-dependencies.testing = [
"build[virtualenv]>=1.2.1",
"build[virtualenv]>=1.2.2",
"covdefaults>=2.3",
"detect-test-pollution>=1.2",
"devpi-process>=1",
Expand All @@ -87,9 +87,9 @@ optional-dependencies.testing = [
"pytest-mock>=3.14",
"pytest-xdist>=3.6.1",
"re-assert>=1.1",
"setuptools>=70.3",
"time-machine>=2.14.2; implementation_name!='pypy'",
"wheel>=0.43",
"setuptools>=74.1.2",
"time-machine>=2.15; implementation_name!='pypy'",
"wheel>=0.44",
]
urls.Documentation = "https://tox.wiki"
urls.Homepage = "http://tox.readthedocs.org"
Expand Down Expand Up @@ -141,10 +141,10 @@ lint.ignore = [
]
lint.per-file-ignores."tests/**/*.py" = [
"D", # don't care about documentation in tests
"FBT", # don"t care about booleans as positional arguments in tests
"FBT", # don't care about booleans as positional arguments in tests
"INP001", # no implicit namespace
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
"S101", # asserts allowed in tests...
"S101", # asserts allowed in tests
"S603", # `subprocess` call: check for execution of untrusted input
]
lint.isort = { known-first-party = [
Expand Down
23 changes: 12 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ requires =
tox>=4.2
env_list =
fix
py312
py311
py310
py39
py38
cov
type
docs
3.13
3.12
3.11
3.10
3.9
3.8
pkg_meta
skip_missing_interpreters = true

Expand Down Expand Up @@ -40,7 +41,7 @@ commands =
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.8
pre-commit-uv>=4.1
pass_env =
{[testenv]passenv}
PROGRAMDATA
Expand All @@ -51,8 +52,8 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.11
types-cachetools>=5.4.0.20240717
mypy==1.11.2
types-cachetools>=5.5.0.20240820
types-chardet>=5.0.4.6
commands =
mypy src/tox
Expand All @@ -71,11 +72,11 @@ commands =
description = check that the long description is valid
skip_install = true
deps =
build[virtualenv]>=1.2.1
build[uv]>=1.2.2
check-wheel-contents>=0.6
twine>=5.1.1
commands =
python -m build -o {envtmpdir} -s -w .
python -m build --installer uv -o {envtmpdir} -s -w .
twine check {envtmpdir}{/}*
check-wheel-contents --no-config {envtmpdir}

Expand All @@ -85,7 +86,7 @@ skip_install = true
deps =
gitpython>=3.1.43
packaging>=24.1
towncrier>=23.11
towncrier>=24.8
commands =
python {toxinidir}/tasks/release.py --version {posargs}

Expand Down

0 comments on commit 5f2d86f

Please sign in to comment.