From dcf91d2a9ab2bf5a6eb8817b5549470877da07f3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 7 Mar 2025 08:53:06 +0100 Subject: [PATCH] Add ruff to pre-commit --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d542b3e..9e70320 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,11 @@ repos: additional_dependencies: - tomli + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.9 + hooks: + - id: ruff + - repo: https://github.com/tox-dev/pyproject-fmt rev: v2.5.1 hooks: diff --git a/pyproject.toml b/pyproject.toml index 91f944a..294fd9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,9 @@ scripts.cpplint = "cpplint:main" py-modules = [ "cpplint" ] include-package-data = false +[tool.ruff] +lint.ignore = [ "E701" ] + [tool.pytest.ini_options] python_files = [ "*test.py" ] testpaths = [ "." ]