Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#227)
Browse files Browse the repository at this point in the history
* chore(deps): update pre-commit hooks

updates:
- [github.com/adamchainz/blacken-docs: 1.16.0 → 1.18.0](adamchainz/blacken-docs@1.16.0...1.18.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.7...v0.5.0)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](pre-commit/mirrors-mypy@v1.10.0...v1.10.1)
- [github.com/henryiii/validate-pyproject-schema-store: 2024.06.03 → 2024.07.01](henryiii/validate-pyproject-schema-store@2024.06.03...2024.07.01)
- [github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.28.6](python-jsonschema/check-jsonschema@0.28.4...0.28.6)

* Update checks.py

* style: pre-commit fixes

* Update checks.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Jul 12, 2024
1 parent d16a547 commit f991460
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ ci:

repos:
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.7"
rev: "v0.5.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -45,7 +45,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
files: (src|web|tests)
Expand Down Expand Up @@ -78,12 +78,12 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.06.03
rev: 2024.07.01
hooks:
- id: validate-pyproject

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
rev: 0.28.6
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
5 changes: 2 additions & 3 deletions src/repo_review/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ def is_allowed(select: Set[str], ignore: Set[str], name: str) -> bool:
and "*" not in select
):
return False
if name in ignore or name.rstrip("0123456789") in ignore:
return False
return True

return name not in ignore and name.rstrip("0123456789") not in ignore


def get_check_url(name: str, check: Check) -> str:
Expand Down

0 comments on commit f991460

Please sign in to comment.