From bdf03e5290f1d1a693841a5255975756fa8e2429 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 21:07:34 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/rbubley/mirrors-prettier: 787fb9f542b140ba0b2aced38e6a3e68021647a3 → 5ba47274f9b181bce26a5150a725577f3c336011](https://github.com/rbubley/mirrors-prettier/compare/787fb9f542b140ba0b2aced38e6a3e68021647a3...5ba47274f9b181bce26a5150a725577f3c336011) - [github.com/astral-sh/ruff-pre-commit: 971923581912ef60a6b70dbf0c3e9a39563c9d47 → 0b19ef1fd6ad680ed7752d6daba883ce1265a6de](https://github.com/astral-sh/ruff-pre-commit/compare/971923581912ef60a6b70dbf0c3e9a39563c9d47...0b19ef1fd6ad680ed7752d6daba883ce1265a6de) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a6b373..cf95cdf 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"] From 3fc9509f4a1564426f3012c94ff7ffb47326f6f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 21:14:51 +0000 Subject: [PATCH 2/3] =?UTF-8?q?'[pre-commit.ci=20=F0=9F=A4=96]=20Apply=20c?= =?UTF-8?q?ode=20format=20tools=20to=20PR'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf95cdf..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: 5ba47274f9b181bce26a5150a725577f3c336011 # frozen: v3.6.2 + 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: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2 + rev: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2 hooks: - id: ruff args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"] From 61867e4fe29bdeabbc1d9c0e836898c98ba2db5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Sat, 6 Sep 2025 20:08:00 -0700 Subject: [PATCH 3/3] Adding ruff ignores --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) 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