Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ repos:
- id: check-added-large-files

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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 971923581912ef60a6b70dbf0c3e9a39563c9d47 # frozen: v0.11.4
rev: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2
hooks:
- id: ruff
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,16 @@ ignore = [
"EM101", # Exception must not use a string literal
"RET505", # Unnecessary `elif` after `return` statement
"SIM108", # Use ternary operator
"PLC0415", # `import` should be at the top-level of a file
]

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

[tool.ruff.format]
docstring-code-format = true
Expand Down
Loading