File tree 2 files changed +79
-10
lines changed
2 files changed +79
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
repos :
3
3
- repo : https://github.com/pre-commit/pre-commit-hooks
4
- rev : v4.5 .0
4
+ rev : v5.0 .0
5
5
hooks :
6
6
- id : check-docstring-first
7
7
- id : check-merge-conflict
@@ -14,14 +14,14 @@ repos:
14
14
- id : requirements-txt-fixer
15
15
- id : trailing-whitespace
16
16
- repo : https://github.com/PyCQA/isort
17
- rev : 5.12.0
17
+ rev : 6.0.1
18
18
hooks :
19
19
- id : isort
20
20
args :
21
21
- " --profile=black"
22
22
exclude : ^.devcontainer/
23
23
- repo : https://github.com/psf/black
24
- rev : 23.9.1
24
+ rev : 25.1.0
25
25
hooks :
26
26
- id : black
27
27
language_version : python3
@@ -33,22 +33,22 @@ repos:
33
33
args :
34
34
- " --py36-plus"
35
35
- repo : https://github.com/PyCQA/flake8
36
- rev : 6.1 .0
36
+ rev : 7.2 .0
37
37
hooks :
38
38
- id : flake8
39
39
exclude : ^.devcontainer/
40
40
- repo : https://github.com/asottile/pyupgrade
41
- rev : v3.15.0
41
+ rev : v3.19.1
42
42
hooks :
43
43
- id : pyupgrade
44
44
args :
45
- - " --py39 -plus"
45
+ - " --py310 -plus"
46
46
- repo : https://github.com/adrienverge/yamllint
47
- rev : v1.32.0
47
+ rev : v1.37.1
48
48
hooks :
49
49
- id : yamllint
50
50
- repo : https://github.com/econchick/interrogate
51
- rev : 1.5 .0
51
+ rev : 1.7 .0
52
52
hooks :
53
53
- id : interrogate
54
54
args : [--fail-under=90, --verbose]
@@ -59,13 +59,17 @@ repos:
59
59
# - id: htmlhint
60
60
# args: [--config, .htmlhintrc]
61
61
- repo : https://github.com/igorshubovych/markdownlint-cli
62
- rev : v0.37 .0
62
+ rev : v0.44 .0
63
63
hooks :
64
64
- id : markdownlint
65
65
- repo : https://github.com/astral-sh/ruff-pre-commit
66
- rev : v0.0.292
66
+ rev : v0.11.10
67
67
hooks :
68
+ # Run the linter.
68
69
- id : ruff
70
+ args : [--fix]
71
+ # Run the formatter.
72
+ - id : ruff-format
69
73
# - repo: local
70
74
# hooks:
71
75
# - id: wily
84
88
# args:
85
89
# - --diff=git diff HEAD
86
90
# - --no-summary
91
+ ...
Original file line number Diff line number Diff line change
1
+ # Ruff configuration
2
+ # ###################
3
+
4
+ # Exclude a variety of commonly ignored directories.
5
+ exclude = [
6
+ " .bzr" ,
7
+ " .direnv" ,
8
+ " .eggs" ,
9
+ " .git" ,
10
+ " .git-rewrite" ,
11
+ " .hg" ,
12
+ " .ipynb_checkpoints" ,
13
+ " .mypy_cache" ,
14
+ " .nox" ,
15
+ " .pants.d" ,
16
+ " .pyenv" ,
17
+ " .pytest_cache" ,
18
+ " .pytype" ,
19
+ " .ruff_cache" ,
20
+ " .svn" ,
21
+ " .tox" ,
22
+ " .venv" ,
23
+ " .vscode" ,
24
+ " __pypackages__" ,
25
+ " _build" ,
26
+ " buck-out" ,
27
+ " build" ,
28
+ " dist" ,
29
+ " node_modules" ,
30
+ " site-packages" ,
31
+ " venv" ,
32
+ ]
33
+
34
+ # Enforce line length and indent-width
35
+ line-length = 120
36
+ indent-width = 4
37
+
38
+ # Always generate Python 3.10-compatible code.
39
+ target-version = " py310"
40
+
41
+ [lint ]
42
+ # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
43
+ select = [" E4" , " E7" , " E9" , " F" ]
44
+ ignore = []
45
+
46
+ # Allow fix for all enabled rules (when `--fix`) is provided.
47
+ fixable = [" ALL" ]
48
+ unfixable = []
49
+
50
+ # Allow unused variables when underscore-prefixed.
51
+ dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
52
+
53
+ [format ]
54
+ # Like Black, use double quotes for strings.
55
+ quote-style = " double"
56
+
57
+ # Like Black, indent with spaces, rather than tabs.
58
+ indent-style = " space"
59
+
60
+ # Like Black, respect magic trailing commas.
61
+ skip-magic-trailing-comma = false
62
+
63
+ # Enforce UNIX line ending
64
+ line-ending = " lf"
You can’t perform that action at this time.
0 commit comments