Skip to content

Commit 345325b

Browse files
committed
Update precommit hooks
1 parent 9550354 commit 345325b

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
# for error classes selected below.
1212

1313
[flake8]
14-
max-line-length = 80
14+
max-line-length = 88
1515
select = C,E,F,W,B,B950
1616
ignore = E501, W503

.pre-commit-config.yaml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,39 @@
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.1.0
6+
rev: v4.3.0
77
hooks:
8-
- id: check-yaml
9-
- id: end-of-file-fixer
108
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: debug-statements
11+
- id: check-ast
12+
- id: mixed-line-ending
13+
- id: check-yaml
14+
args: [--allow-multiple-documents]
15+
- id: check-json
16+
- id: check-toml
17+
- id: check-added-large-files
1118
- repo: https://github.com/psf/black
12-
rev: 22.3.0
19+
rev: 22.6.0
1320
hooks:
1421
- id: black
1522
- repo: https://gitlab.com/pycqa/flake8
16-
rev: 3.8.4
23+
rev: 5.0.4
1724
hooks:
1825
- id: flake8
1926
pass_filenames: true
2027
- repo: https://github.com/pycqa/isort
2128
rev: 5.10.1
2229
hooks:
2330
- id: isort
31+
- repo: https://github.com/asottile/pyupgrade
32+
rev: v2.37.3
33+
hooks:
34+
- id: pyupgrade
35+
args: [--py38-plus]
36+
- repo: https://github.com/pre-commit/mirrors-prettier
37+
rev: v2.7.1
38+
hooks:
39+
- id: prettier
40+
files: \.(html|md|yml|yaml)
41+
args: [--prose-wrap=preserve]

0 commit comments

Comments
 (0)