-
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.
fix: update pre-commit config to match EveryVoice
- Loading branch information
Showing
1 changed file
with
17 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
exclude: \.svg$ | ||
- repo: local | ||
- repo: local | ||
# Using local repos because these won't work for me from remote repo -EJ | ||
# They're also more convenient because we install them via requirements.dev.txt | ||
# and they are then available on the command line as well as in pre-commit. | ||
hooks: | ||
- id: isort | ||
- id: isort | ||
name: isort | ||
entry: isort | ||
language: system | ||
types: [python] | ||
stages: [commit] | ||
- id: black | ||
- id: black | ||
name: black | ||
entry: black | ||
language: system | ||
types: [python] | ||
stages: [commit] | ||
- id: mypy | ||
# We do flake8 last since black fixes a lot of the stuff it complains about | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.1.0 | ||
hooks: | ||
- id: flake8 | ||
# We do mypy last because it's the slowest of them all | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
language: system | ||
types: [python] | ||
stages: [commit] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 |