diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23dd12f0..cc32d8f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-json @@ -26,7 +26,7 @@ repos: - id: check-readthedocs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.292 + rev: v0.1.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -35,7 +35,7 @@ repos: entry: ruff format - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.10.0 hooks: - id: black language_version: python3.11 @@ -55,7 +55,7 @@ repos: - darglint==1.8.1 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy additional_dependencies: @@ -66,12 +66,12 @@ repos: language_version: python3.11 - repo: https://github.com/pre-commit/pre-commit - rev: v3.4.0 + rev: v3.5.0 hooks: - id: validate_manifest - repo: https://github.com/hadialqattan/pycln - rev: v2.2.2 + rev: v2.3.0 hooks: - id: pycln args: [--all] diff --git a/noxfile.py b/noxfile.py index bbbdd80a..11373066 100644 --- a/noxfile.py +++ b/noxfile.py @@ -42,7 +42,7 @@ def tests(session: Session) -> None: if GH_ACTIONS_ENV_VAR in os.environ: deps.append("pytest-github-actions-annotate-failures") - if session.python in ("3.13",): + if session.python == "3.13": env["PIP_NO_BINARY"] = "coverage" session.install(".", env=env) diff --git a/scripts/docker_tags.py b/scripts/docker_tags.py index ff1799ad..055d141b 100644 --- a/scripts/docker_tags.py +++ b/scripts/docker_tags.py @@ -44,7 +44,7 @@ def filter_tags(tags: t.Iterable[dict]) -> t.Generator[str, None, None]: count_6 = 0 for tag in tags: name = tag["name"] - if name in ("6-apache", "5-apache"): + if name in {"6-apache", "5-apache"}: yield name if re.match(PATTERN_5x, name) and count_5 < 3: # noqa: PLR2004 yield name