diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9bf51c1..6cbc291e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,7 @@ name: Tests on: [push, pull_request, workflow_dispatch] -permissions: - contents: read +permissions: {} env: FORCE_COLOR: 1 @@ -15,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] steps: - uses: actions/checkout@v6 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70470385..d1a4a0dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,8 @@ repos: - id: end-of-file-fixer - id: forbid-new-submodules - id: trailing-whitespace + + - repo: https://github.com/tox-dev/tox-ini-fmt + rev: 1.7.1 + hooks: + - id: tox-ini-fmt diff --git a/tox.ini b/tox.ini index a266c2eb..a0890702 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,14 @@ [tox] -envlist = py{314, 313, 312, 311, 310} -toxworkdir={env:TOX_WORK_DIR:.tox} +requires = + tox>=4.2 +env_list = + py{315, 314, 313, 312, 311, 310} [testenv] -passenv = - FORCE_COLOR -skip_install = True +skip_install = true deps = - -r dev-requirements.txt + -r dev-requirements.txt +pass_env = + FORCE_COLOR commands = - pytest {posargs} + pytest {posargs}