aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-04-10 17:33:26 +0100
committerStephen Finucane <stephen@that.guru>2020-04-14 11:10:32 +0100
commit4eaf300678df4d28b2cee4ad2f2de547daef5169 (patch)
tree080eea82d03fb3195db03e54fe50126327498c88
parentcbc04868c164d2541e01a5de18d568c54f6dcfd1 (diff)
downloadpatchwork-4eaf300678df4d28b2cee4ad2f2de547daef5169.tar
patchwork-4eaf300678df4d28b2cee4ad2f2de547daef5169.tar.gz
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>
-rw-r--r--.pre-commit-config.yaml12
1 files changed, 9 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bea1187..8a6e51c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,16 +1,22 @@
+---
+default_language_version:
+ # force all unspecified python hooks to run python3
+ python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.3.0
+ rev: v2.5.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
exclude: (.*\.mbox)|(.*\.css)|(.*\.json)|(.*\.js)|(.*\.svg)|(.*/mails/.*-subject\.txt)
- - id: flake8
- exclude: ^patchwork/migrations
- id: trailing-whitespace
exclude: (.*\.mbox)|(.*\.svg)
+- repo: https://gitlab.com/pycqa/flake8
+ rev: 3.7.9
+ hooks:
+ - id: flake8
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks: