Skip to content

Commit

Permalink
Add regex based pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Sep 20, 2022
1 parent 657dde6 commit 5541879
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ repos:
- id: trailing-whitespace
exclude: ".*fits"

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: rst-directive-colons
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char

- repo: https://github.com/asottile/pyupgrade
rev: v2.38.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import tomli
from pkg_resources import get_distribution
from sphinx_asdf.conf import * # noqa
from sphinx_asdf.conf import * # noqa: F403, F401

# Get configuration information from `pyproject.toml`
with open(Path(__file__).parent.parent / "pyproject.toml", "rb") as configuration_file:
Expand Down

0 comments on commit 5541879

Please sign in to comment.