Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Feb 10, 2025
1 parent 47faa48 commit d203877
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.1"]
additional_dependencies: ["tomli>=2.2.1"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
Expand All @@ -32,7 +32,7 @@ repos:
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==24.10]
additional_dependencies: [black==25.1]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand Down
36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.4",
"hatchling>=1.26.3",
"hatchling>=1.27",
]

[project]
Expand Down Expand Up @@ -50,21 +50,21 @@ dynamic = [
"version",
]
dependencies = [
"cachetools>=5.5",
"cachetools>=5.5.1",
"chardet>=5.2",
"colorama>=0.4.6",
"filelock>=3.16.1",
"packaging>=24.2",
"platformdirs>=4.3.6",
"pluggy>=1.5",
"pyproject-api>=1.8",
"tomli>=2.1; python_version<'3.11'",
"tomli>=2.2.1; python_version<'3.11'",
"typing-extensions>=4.12.2; python_version<'3.11'",
"virtualenv>=20.27.1",
"virtualenv>=20.29.1",
]
optional-dependencies.test = [
"devpi-process>=1.0.2",
"pytest>=8.3.3",
"pytest>=8.3.4",
"pytest-mock>=3.14",
]
urls.Documentation = "https://tox.wiki"
Expand All @@ -89,29 +89,29 @@ test = [
"distlib>=0.3.9",
"flaky>=3.8.1",
"hatch-vcs>=0.4",
"hatchling>=1.26.3",
"psutil>=6.1",
"pytest>=8.3.3",
"hatchling>=1.27",
"psutil>=6.1.1",
"pytest>=8.3.4",
"pytest-cov>=5",
"pytest-mock>=3.14",
"pytest-xdist>=3.6.1",
"re-assert>=1.1",
"setuptools>=75.1; python_version<='3.8'",
"setuptools>=75.6; python_version>'3.8'",
"setuptools>=75.3; python_version<='3.8'",
"setuptools>=75.8; python_version>'3.8'",
"time-machine>=2.15; implementation_name!='pypy'",
"wheel>=0.45",
"wheel>=0.45.1",
]
type = [
"mypy==1.13",
"mypy==1.15",
"types-cachetools>=5.5.0.20240820",
"types-chardet>=5.0.4.6",
{ include-group = "test" },
]
docs = [
"furo>=2024.8.6",
"sphinx>=8.1.3",
"sphinx-argparse-cli>=1.18.2",
"sphinx-autodoc-typehints>=2.5",
"sphinx-argparse-cli>=1.19",
"sphinx-autodoc-typehints>=3.0.1",
"sphinx-copybutton>=0.5.2",
"sphinx-inline-tabs>=2023.4.21",
"sphinxcontrib-towncrier>=0.2.1a0",
Expand All @@ -121,12 +121,12 @@ fix = [
"pre-commit-uv>=4.1.4",
]
pkg-meta = [
"check-wheel-contents>=0.6",
"twine>=5.1.1",
"uv>=0.5.3",
"check-wheel-contents>=0.6.1",
"twine>=6.1",
"uv>=0.5.29",
]
release = [
"gitpython>=3.1.43",
"gitpython>=3.1.44",
"packaging>=24.2",
"towncrier>=24.8",
]
Expand Down
6 changes: 5 additions & 1 deletion src/tox/config/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Optional, Sequence, Tuple, Type, TypeVar, cast

from colorama import Fore
from typing_extensions import Self

from tox.config.loader.str_convert import StrConvert
from tox.plugin import NAME
Expand All @@ -21,6 +20,11 @@
from .env_var import get_env_var
from .ini import IniConfig

if sys.version_info >= (3, 11): # pragma: >=3.11 cover
from typing import Self
else: # pragma: <3.11 cover
from typing_extensions import Self

if TYPE_CHECKING:
from tox.session.state import State

Expand Down
6 changes: 5 additions & 1 deletion src/tox/util/spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
from typing import IO, TYPE_CHECKING, NamedTuple, Sequence, TypeVar

from colorama import Fore
from typing_extensions import Self

if sys.version_info >= (3, 11): # pragma: >=3.11 cover
from typing import Self
else: # pragma: <3.11 cover
from typing_extensions import Self

if TYPE_CHECKING:
from types import TracebackType
Expand Down
2 changes: 1 addition & 1 deletion tox.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requires = ["tox>=4.23.2"]
requires = ["tox>=4.24.1"]
env_list = ["fix", "3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "cov", "type", "docs", "pkg_meta"]
skip_missing_interpreters = true

Expand Down

0 comments on commit d203877

Please sign in to comment.