Skip to content

Commit bcaa306

Browse files
committed
Update pre-commit
1 parent fc8d0b3 commit bcaa306

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ repos:
1212
- id: check-merge-conflict
1313
- id: debug-statements
1414
- id: detect-private-key
15+
exclude: 'tests/data/.*'
16+
- id: check-builtin-literals
17+
- id: check-case-conflict
18+
- id: check-docstring-first
19+
- id: check-executables-have-shebangs
20+
- id: check-json
21+
- id: pretty-format-json
22+
args:
23+
- '--indent'
24+
- '4'
25+
- '--autofix'
26+
- '--no-sort-keys'
27+
- id: check-toml
28+
- id: fix-encoding-pragma
29+
args:
30+
- '--remove'
1531
- repo: https://github.com/psf/black
1632
rev: 19.10b0
1733
hooks:
@@ -20,18 +36,20 @@ repos:
2036
rev: v1.7.0
2137
hooks:
2238
- id: blacken-docs
23-
additional_dependencies: [black==19.10b0]
39+
additional_dependencies:
40+
- black==19.10b0
2441
- repo: https://github.com/asottile/seed-isort-config
2542
rev: v2.1.1
2643
hooks:
2744
- id: seed-isort-config
28-
- repo: https://github.com/pre-commit/mirrors-isort
29-
rev: v4.3.21
45+
- repo: https://github.com/timothycrosley/isort
46+
rev: 4.3.21
3047
hooks:
3148
- id: isort
49+
additional_dependencies:
50+
- toml==0.10.0
3251
- repo: https://github.com/pre-commit/pygrep-hooks
3352
rev: v1.5.1
3453
hooks:
35-
- id: python-use-type-annotations
3654
- id: python-no-eval
3755
- id: python-no-log-warn

0 commit comments

Comments
 (0)