Skip to content

Commit 4eaf300

Browse files
committed
pre-commit: Use Python 3 for everything
This lets us use e.g. f-strings. We also bump the version of the default pre-commit lib and migrate to the upstream flake8 plugin, since the old one is now deprecated. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent cbc0486 commit 4eaf300

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
---
2+
default_language_version:
3+
# force all unspecified python hooks to run python3
4+
python: python3
15
repos:
26
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
7+
rev: v2.5.0
48
hooks:
59
- id: check-executables-have-shebangs
610
- id: check-merge-conflict
711
- id: check-yaml
812
- id: end-of-file-fixer
913
exclude: (.*\.mbox)|(.*\.css)|(.*\.json)|(.*\.js)|(.*\.svg)|(.*/mails/.*-subject\.txt)
10-
- id: flake8
11-
exclude: ^patchwork/migrations
1214
- id: trailing-whitespace
1315
exclude: (.*\.mbox)|(.*\.svg)
16+
- repo: https://gitlab.com/pycqa/flake8
17+
rev: 3.7.9
18+
hooks:
19+
- id: flake8
1420
- repo: https://github.com/Lucas-C/pre-commit-hooks
1521
rev: v1.1.7
1622
hooks:

0 commit comments

Comments
 (0)