Skip to content

Commit

Permalink
Merge pull request #1195 from WilliamJamieson/pre-commit/simple-checks
Browse files Browse the repository at this point in the history
Add some more pre-commit checks
  • Loading branch information
WilliamJamieson authored Sep 20, 2022
2 parents 7c3cd4d + 5541879 commit bf80c46
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,31 @@ repos:
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-yaml
args: ["--unsafe"]
- id: check-toml
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-private-key
- id: fix-encoding-pragma
args: ["--remove"]
- id: end-of-file-fixer
exclude: ".*fits"
- 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 bf80c46

Please sign in to comment.