diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8e5c89632..bf68c7968 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,7 +1,9 @@ name: check on: + workflow_dispatch: push: - tags-ignore: ["**"] + branches: "main" + tags-ignore: [ "**" ] pull_request: schedule: - cron: "0 8 * * *" @@ -18,7 +20,7 @@ jobs: fail-fast: false matrix: py: - - "3.12.0-rc.1" + - "3.12" - "3.11" - "3.10" - "3.9" @@ -31,7 +33,7 @@ jobs: - name: Setup python for tox uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -70,10 +72,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Python 3.11 + - name: Setup Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install self-tox run: python -m pip install . - name: Run check for ${{ matrix.tox_env }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06fb6f8ab..704a5f636 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Setup python to build package uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install build run: python -m pip install build - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 951e5523f..a8b3b247a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.7 hooks: - id: ruff-format - repo: https://github.com/codespell-project/codespell @@ -21,22 +21,17 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.5.1 + rev: 1.5.3 hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.11.3"] - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 - hooks: - - id: prettier - args: ["--print-width=120", "--prose-wrap=always"] + additional_dependencies: ["tox>=4.11.4"] - repo: https://github.com/asottile/blacken-docs rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==23.10.1] + additional_dependencies: [black==23.11] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes] diff --git a/pyproject.toml b/pyproject.toml index 3ae0f6b63..6660bfb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "hatchling.build" requires = [ - "hatch-vcs>=0.3", + "hatch-vcs>=0.4", "hatchling>=1.18", ] @@ -47,47 +47,47 @@ dynamic = [ "version", ] dependencies = [ - "cachetools>=5.3.1", + "cachetools>=5.3.2", "chardet>=5.2", "colorama>=0.4.6", - "filelock>=3.12.3", - 'importlib-metadata>=6.8; python_version < "3.8"', - "packaging>=23.1", - "platformdirs>=3.10", + "filelock>=3.13.1", + 'importlib-metadata>=7; python_version < "3.8"', + "packaging>=23.2", + "platformdirs>=4.1", "pluggy>=1.3", "pyproject-api>=1.6.1", 'tomli>=2.0.1; python_version < "3.11"', - 'typing-extensions>=4.7.1; python_version < "3.8"', - "virtualenv>=20.24.3", + 'typing-extensions>=4.8; python_version < "3.8"', + "virtualenv>=20.25", ] optional-dependencies.docs = [ - "furo>=2023.8.19", - "sphinx>=7.2.4", + "furo>=2023.9.10", + "sphinx>=7.2.6", "sphinx-argparse-cli>=1.11.1", - "sphinx-autodoc-typehints!=1.23.4,>=1.24", + "sphinx-autodoc-typehints!=1.23.4,>=1.25.2", "sphinx-copybutton>=0.5.2", "sphinx-inline-tabs>=2023.4.21", "sphinxcontrib-towncrier>=0.2.1a0", - "towncrier>=23.6", + "towncrier>=23.11", ] optional-dependencies.testing = [ - "build[virtualenv]>=0.10", + "build[virtualenv]>=1.0.3", "covdefaults>=2.3", - "detect-test-pollution>=1.1.1", + "detect-test-pollution>=1.2", "devpi-process>=1", - "diff-cover>=7.7", + "diff-cover>=8.0.1", "distlib>=0.3.7", "flaky>=3.7", - "hatch-vcs>=0.3", + "hatch-vcs>=0.4", "hatchling>=1.18", - "psutil>=5.9.5", - "pytest>=7.4", + "psutil>=5.9.6", + "pytest>=7.4.3", "pytest-cov>=4.1", - "pytest-mock>=3.11.1", - "pytest-xdist>=3.3.1", + "pytest-mock>=3.12", + "pytest-xdist>=3.5", "re-assert>=1.1", - 'time-machine>=2.12; implementation_name != "pypy"', - "wheel>=0.41.2", + 'time-machine>=2.13; implementation_name != "pypy"', + "wheel>=0.42", ] urls.Documentation = "https://tox.wiki" urls.Homepage = "http://tox.readthedocs.org" diff --git a/tox.ini b/tox.ini index 15d2f1da3..6ec76e984 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,6 @@ env_list = py310 py39 py38 - py37 cov type docs @@ -52,8 +51,8 @@ commands = [testenv:type] description = run type check on code base deps = - mypy==1.6.1 - types-cachetools>=5.3.0.6 + mypy==1.7.1 + types-cachetools>=5.3.0.7 types-chardet>=5.0.4.6 commands = mypy src/tox @@ -61,7 +60,6 @@ commands = [testenv:docs] description = build documentation -base_python = python3.11 extras = docs commands = @@ -74,7 +72,7 @@ description = check that the long description is valid skip_install = true deps = build[virtualenv]>=1.0.3 - check-wheel-contents>=0.5 + check-wheel-contents>=0.6 twine>=4.0.2 commands = python -m build -o {envtmpdir} -s -w . @@ -87,7 +85,7 @@ skip_install = true deps = gitpython>=3.1.40 packaging>=23.2 - towncrier>=23.10 + towncrier>=23.11 commands = python {toxinidir}/tasks/release.py --version {posargs}