extend black formatting to tests as well

This commit is contained in:
Anthony Sottile 2021-04-18 09:17:48 -07:00
parent a7174759e9
commit af1668bf04
45 changed files with 1644 additions and 1307 deletions

View file

@ -1,14 +1,12 @@
exclude: ^tests/fixtures/example-code/
exclude: ^tests/fixtures/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: debug-statements
exclude: ^tests/fixtures/example-code/invalid-syntax.py$
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^tests/fixtures/diffs/
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.4.0
hooks:
@ -18,8 +16,7 @@ repos:
rev: 20.8b1
hooks:
- id: black
args: [--line-length=78]
files: ^src/
args: [--line-length=79]
- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
hooks:
@ -29,4 +26,4 @@ repos:
rev: v0.812
hooks:
- id: mypy
exclude: ^(docs/|example-plugin/|tests/fixtures)
exclude: ^(docs/|example-plugin/)