-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also fixes pre-commit errors Signed-off-by: John Strunk <[email protected]>
- Loading branch information
1 parent
226aab5
commit 1d37c85
Showing
8 changed files
with
263 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
# Install in your local dev environment | ||
# > pip install --upgrade --user pre-commit | ||
# Enable the hooks for this repo | ||
# > pre-commit install | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: check-added-large-files # prevents giant files from being committed | ||
- id: check-yaml # checks yaml files for parseable syntax | ||
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline | ||
- id: trailing-whitespace # trims trailing whitespace | ||
exclude: startlist_test.py # Test data has intentional EOL whitespace | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.1.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-python-dateutil | ||
- types-requests | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: rst-backticks # Detect common mistake of using single backticks when writing rst | ||
- id: rst-directive-colons # Detect mistake of rst directive not ending with double colon or space before the double colon | ||
- id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst | ||
- id: text-unicode-replacement-char # Forbid files which have a UTF-8 Unicode replacement character |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters