-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit. * Remove pep8 dependency. * Rename pre-commit.yaml. * Re-lint code base. * Requirements tidy. * Update CHANGES deprecation message. * Remove .gitattributes now Versioneer is gone. * Update README. * Add Cirrus lint task. * Python container for Cirrus lint task. * Temporary increase to Codecov tolerance. * Revert "Temporary increase to Codecov tolerance." This reverts commit 80b3c61. * Temporarily disable Codecov patch failure to allow for Black changes. * Pre-commit just perform checks, don't modify.
- Loading branch information
1 parent
50e44d0
commit 0ca0921
Showing
36 changed files
with
2,049 additions
and
1,637 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.0.1" | ||
hooks: | ||
# Prevent giant files from being committed. | ||
- id: check-added-large-files | ||
# Check whether files parse as valid Python. | ||
- id: check-ast | ||
# Check for file name conflicts on case-insensitive filesytems. | ||
- id: check-case-conflict | ||
# Check for files that contain merge conflict strings. | ||
- id: check-merge-conflict | ||
# Check for debugger imports and py37+ `breakpoint()` calls in Python source. | ||
- id: debug-statements | ||
# Don't commit to main branch. | ||
- id: no-commit-to-branch | ||
- repo: https://github.com/psf/black | ||
rev: "21.6b0" | ||
hooks: | ||
- id: black | ||
# Force black to run on whole repo, using settings from pyproject.toml | ||
pass_filenames: false | ||
args: ["--config=./pyproject.toml", "--check", "."] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: "3.9.2" | ||
hooks: | ||
# Run flake8. | ||
- id: flake8 | ||
args: ["--config=./setup.cfg"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: "5.8.0" | ||
hooks: | ||
- id: isort | ||
name: isort | ||
args: ["--filter-files", "--check"] |
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
Oops, something went wrong.