Browse code

Add more pre-commit hooks

Joseph Weston authored on 28/02/2023 02:51:01
Showing 1 changed files
... ...
@@ -1,15 +1,32 @@
1 1
 repos:
2
--   repo: https://github.com/pre-commit/pre-commit-hooks
3
-    rev: v4.4.0
4
-    hooks:
5
-    -   id: check-yaml
6
-    -   id: end-of-file-fixer
7
-    -   id: trailing-whitespace
8
--   repo: https://github.com/psf/black
9
-    rev: 23.1.0
10
-    hooks:
11
-    -   id: black
12
--   repo: https://github.com/pre-commit/mirrors-mypy
13
-    rev: 'v1.0.1'  # Use the sha / tag you want to point at
14
-    hooks:
15
-    -   id: mypy
2
+- repo: https://github.com/pre-commit/pre-commit-hooks
3
+  rev: v4.4.0
4
+  hooks:
5
+  - id: check-yaml
6
+  - id: end-of-file-fixer
7
+  - id: trailing-whitespace
8
+- repo: https://github.com/psf/black
9
+  rev: 23.1.0
10
+  hooks:
11
+  - id: black
12
+- repo: https://github.com/pre-commit/mirrors-mypy
13
+  rev: 'v1.0.1'  # Use the sha / tag you want to point at
14
+  hooks:
15
+  - id: mypy
16
+- repo: https://github.com/asottile/pyupgrade
17
+  rev: v3.3.1
18
+  hooks:
19
+  - id: pyupgrade
20
+    args: [--py38-plus]
21
+- repo: https://github.com/PyCQA/flake8
22
+  rev: 6.0.0
23
+  hooks:
24
+  - id: flake8
25
+- repo: https://github.com/nbQA-dev/nbQA
26
+  rev: 1.6.3
27
+  hooks:
28
+   - id: nbqa-pyupgrade
29
+     args: [--py39-plus]
30
+   - id: nbqa-isort
31
+     args: [--profile, black]
32
+   - id: nbqa-flake8