diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d99abf96..0bf73e7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -19,19 +19,19 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.2.4" + rev: "v2.5.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.8 + rev: v0.7.3 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy files: ^nox/ @@ -40,6 +40,7 @@ repos: - colorlog - dependency-groups>=1.2 - jinja2 + - orjson # Faster mypy - packaging - importlib_metadata - tomli diff --git a/pyproject.toml b/pyproject.toml index a179c049..80f7ddda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,8 +39,8 @@ classifiers = [ "Topic :: Software Development :: Testing", ] dependencies = [ - "argcomplete<4,>=1.9.4", - "colorlog<7,>=2.6.1", + "argcomplete>=1.9.4,<4", + "colorlog>=2.6.1,<7", "dependency-groups>=1.1", "packaging>=20.9", "tomli>=1; python_version<'3.11'", @@ -60,6 +60,24 @@ urls.repository = "https://github.com/wntrblm/nox" scripts.nox = "nox.__main__:main" scripts.tox-to-nox = "nox.tox_to_nox:main" +[dependency-groups] +dev = [ + { include-group = "docs" }, + { include-group = "test" }, +] +test = [ + "coverage[toml]>=7.2", + "pytest>=6", + "pytest-cov", +] +docs = [ + "myst-parser", + "sphinx>=3", + "sphinx-autobuild", + "sphinx-tabs", + "witchhazel", +] + [tool.hatch] metadata.allow-ambiguous-features = true # disable normalization (tox-to-nox) for back-compat @@ -116,21 +134,3 @@ enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ] [[tool.mypy.overrides]] module = [ "argcomplete", "colorlog.*", "py", "tox.*" ] ignore_missing_imports = true - -[dependency-groups] -test = [ - "coverage[toml]>=7.2", - "pytest>=6.0", - "pytest-cov", -] -docs = [ - "myst-parser", - "sphinx>=3.0", - "sphinx-autobuild", - "sphinx-tabs", - "witchhazel", -] -dev = [ - { include-group = "docs" }, - { include-group = "test" }, -]