-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from niaid/add_pre-commit
Setting up pre-commit
- Loading branch information
Showing
4 changed files
with
43 additions
and
15 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,26 @@ | ||
# .pre-commit-config.yaml | ||
# for details see https://pre-commit.com | ||
# for list of available hooks see https://pre-commit.com/hooks.html | ||
# | ||
# Preclude commits that do not conform to various criteria. | ||
|
||
fail_fast: true | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: # check for large files, aws credentials and private key files | ||
- id: check-added-large-files | ||
args: ['--maxkb=200'] | ||
- id: detect-private-key | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
entry: pflake8 | ||
additional_dependencies: [pyproject-flake8] | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: # check conformance to black formatting | ||
- id: black | ||
args: ['--diff', '-v'] # if run without arguments, will fail and will format the files |
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