File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ repos:
23
23
- id : check-added-large-files
24
24
25
25
- repo : https://github.com/rbubley/mirrors-prettier
26
- rev : 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
26
+ rev : 5ba47274f9b181bce26a5150a725577f3c336011 # frozen: v3.6.2
27
27
hooks :
28
28
- id : prettier
29
29
files : \.(html|md|yml|yaml|toml)
30
30
args : [--prose-wrap=preserve]
31
31
32
32
- repo : https://github.com/astral-sh/ruff-pre-commit
33
- rev : 971923581912ef60a6b70dbf0c3e9a39563c9d47 # frozen: v0.11.4
33
+ rev : 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2
34
34
hooks :
35
35
- id : ruff
36
36
args : ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
Original file line number Diff line number Diff line change @@ -88,12 +88,16 @@ ignore = [
88
88
" EM101" , # Exception must not use a string literal
89
89
" RET505" , # Unnecessary `elif` after `return` statement
90
90
" SIM108" , # Use ternary operator
91
+ " PLC0415" , # `import` should be at the top-level of a file
91
92
]
92
93
93
94
[tool .ruff .lint .per-file-ignores ]
94
95
"tests/test_*.py" = [
95
96
" ARG001" , # Pytest fixtures are passed as arguments
96
97
]
98
+ ".spin/cmds.py" = [
99
+ " PT028" , # This is not a test file but a command named test
100
+ ]
97
101
98
102
[tool .ruff .format ]
99
103
docstring-code-format = true
You can’t perform that action at this time.
0 commit comments