Skip to content

Commit 192724d

Browse files
[pre-commit.ci] pre-commit autoupdate (#154)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Brigitta Sipőcz <[email protected]>
1 parent d575461 commit 192724d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ repos:
2323
- id: check-added-large-files
2424

2525
- repo: https://github.com/rbubley/mirrors-prettier
26-
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
26+
rev: 5ba47274f9b181bce26a5150a725577f3c336011 # frozen: v3.6.2
2727
hooks:
2828
- id: prettier
2929
files: \.(html|md|yml|yaml|toml)
3030
args: [--prose-wrap=preserve]
3131

3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: 971923581912ef60a6b70dbf0c3e9a39563c9d47 # frozen: v0.11.4
33+
rev: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2
3434
hooks:
3535
- id: ruff
3636
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ ignore = [
8888
"EM101", # Exception must not use a string literal
8989
"RET505", # Unnecessary `elif` after `return` statement
9090
"SIM108", # Use ternary operator
91+
"PLC0415", # `import` should be at the top-level of a file
9192
]
9293

9394
[tool.ruff.lint.per-file-ignores]
9495
"tests/test_*.py" = [
9596
"ARG001", # Pytest fixtures are passed as arguments
9697
]
98+
".spin/cmds.py" = [
99+
"PT028", # This is not a test file but a command named test
100+
]
97101

98102
[tool.ruff.format]
99103
docstring-code-format = true

0 commit comments

Comments
 (0)