Browse code

Bump required Python version to 3.11

Joseph Weston authored on 01/11/2023 04:28:45
Showing 1 changed files
... ...
@@ -1,9 +1,9 @@
1 1
 repos:
2 2
 -   repo: https://github.com/ambv/black
3
-    rev: 19.3b0
3
+    rev: 23.10.0
4 4
     hooks:
5 5
     - id: black
6
-      language_version: python3.8
6
+      language_version: python3.11
7 7
 -   repo: https://github.com/pre-commit/pre-commit-hooks
8 8
     rev: v2.1.0
9 9
     hooks:
... ...
@@ -11,7 +11,12 @@ repos:
11 11
       exclude: '.bumpversion.cfg'
12 12
     - id: trailing-whitespace
13 13
       exclude: '.bumpversion.cfg'
14
--   repo: https://gitlab.com/pycqa/flake8
15
-    rev: 3.7.9
14
+-   repo: https://github.com/astral-sh/ruff-pre-commit
15
+    rev: "v0.1.1"
16 16
     hooks:
17
-    - id: flake8
17
+    - id: ruff
18
+      args: ["--fix"]
19
+-   repo: https://github.com/pre-commit/mirrors-mypy
20
+    rev: "v1.6.1"
21
+    hooks:
22
+    - id: mypy
Browse code

Upgrade requirements to Python 3.8

Joseph Weston authored on 13/09/2021 02:02:38
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@ repos:
3 3
     rev: 19.3b0
4 4
     hooks:
5 5
     - id: black
6
-      language_version: python3.7
6
+      language_version: python3.8
7 7
 -   repo: https://github.com/pre-commit/pre-commit-hooks
8 8
     rev: v2.1.0
9 9
     hooks:
Browse code

fix flake8 config and re-enable pre-commit flake8

Joseph Weston authored on 17/12/2019 10:55:22
Showing 1 changed files
... ...
@@ -11,10 +11,7 @@ repos:
11 11
       exclude: '.bumpversion.cfg'
12 12
     - id: trailing-whitespace
13 13
       exclude: '.bumpversion.cfg'
14
-# Disable this until 3.8.0 is released (as explained in
15
-# https://gitlab.com/pycqa/flake8/issues/450)
16
-#-   repo: https://gitlab.com/pycqa/flake8
17
-#    rev: 3.8.0
18
-#    hooks:
19
-#    - id: flake8
20
-#      args: ['--config=tox.ini']
14
+-   repo: https://gitlab.com/pycqa/flake8
15
+    rev: 3.7.9
16
+    hooks:
17
+    - id: flake8
Browse code

Add bumpversion config

Also disable end-of-file pre-commit checks, as bumpversion adds a
newline, see https://github.com/c4urself/bump2version/issues/58.

Joseph Weston authored on 12/11/2019 11:26:23
Showing 1 changed files
... ...
@@ -8,7 +8,9 @@ repos:
8 8
     rev: v2.1.0
9 9
     hooks:
10 10
     - id: end-of-file-fixer
11
+      exclude: '.bumpversion.cfg'
11 12
     - id: trailing-whitespace
13
+      exclude: '.bumpversion.cfg'
12 14
 # Disable this until 3.8.0 is released (as explained in
13 15
 # https://gitlab.com/pycqa/flake8/issues/450)
14 16
 #-   repo: https://gitlab.com/pycqa/flake8
Browse code

Add workdlow-related configuration

Joseph Weston authored on 09/11/2019 00:44:12
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+repos:
2
+-   repo: https://github.com/ambv/black
3
+    rev: 19.3b0
4
+    hooks:
5
+    - id: black
6
+      language_version: python3.7
7
+-   repo: https://github.com/pre-commit/pre-commit-hooks
8
+    rev: v2.1.0
9
+    hooks:
10
+    - id: end-of-file-fixer
11
+    - id: trailing-whitespace
12
+# Disable this until 3.8.0 is released (as explained in
13
+# https://gitlab.com/pycqa/flake8/issues/450)
14
+#-   repo: https://gitlab.com/pycqa/flake8
15
+#    rev: 3.8.0
16
+#    hooks:
17
+#    - id: flake8
18
+#      args: ['--config=tox.ini']