]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
add pyupgrade pre-commit hook
authorDavid Lord <davidism@gmail.com>
Wed, 29 Jan 2020 07:02:14 +0000 (23:02 -0800)
committerDavid Lord <davidism@gmail.com>
Wed, 5 Feb 2020 16:44:19 +0000 (08:44 -0800)
.pre-commit-config.yaml

index 3a341a82fe48aa17cee5073c1272d19557d5c6bf..a982b5f0a01d792f5ec443e29f5a909c77db58ee 100644 (file)
@@ -1,4 +1,9 @@
 repos:
+  - repo: https://github.com/asottile/pyupgrade
+    rev: v1.26.2
+    hooks:
+      - id: pyupgrade
+        args: ["--py36-plus"]
   - repo: https://github.com/asottile/reorder_python_imports
     rev: v1.9.0
     hooks: