Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 22, 2023
1 parent 76c4283 commit 4447345
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4447345

Please sign in to comment.