-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create .pre-commit-config.yaml (#478)
* Create .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Exclude tests when checking for private keys and flake8 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update .isort.cfg * Remove .isort.cfg Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d29ee3e
commit 0d37aa2
Showing
42 changed files
with
1,271 additions
and
1,002 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,61 @@ | ||
repos: [] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.0.1' | ||
hooks: | ||
- id: check-merge-conflict | ||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.2.3 | ||
hooks: | ||
- id: yesqa | ||
- repo: https://github.com/pycqa/isort | ||
rev: '5.9.3' | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/psf/black | ||
rev: '21.9b0' | ||
hooks: | ||
- id: black | ||
language_version: python3 # Should be a command that runs python3.6+ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.0.1' | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: >- | ||
^docs/[^/]*\.svg$ | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
types: [python] | ||
- id: file-contents-sorter | ||
files: | | ||
CONTRIBUTORS.txt| | ||
docs/spelling_wordlist.txt| | ||
.gitignore| | ||
.gitattributes | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-xml | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: check-added-large-files | ||
- id: check-symlinks | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
args: ['--allow-missing-credentials'] | ||
- id: detect-private-key | ||
exclude: ^tests/ | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: 'v2.28.0' | ||
hooks: | ||
- id: pyupgrade | ||
args: ['--py37-plus', '--keep-mock'] | ||
|
||
- repo: git://github.com/Lucas-C/pre-commit-hooks-markup | ||
rev: v1.0.1 | ||
hooks: | ||
- id: rst-linter | ||
files: >- | ||
^[^/]+[.]rst$ |
Oops, something went wrong.