diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a6b373..ebced1b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index 27b03e5..b153da2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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