diff --git a/examples/ruff.toml b/examples/ruff.toml index 2eb42d98..5d27c1f8 100644 --- a/examples/ruff.toml +++ b/examples/ruff.toml @@ -1,6 +1,7 @@ # This extend our general Ruff rules specifically for the examples extend = "../pyproject.toml" +[lint] extend-ignore = [ "T201", # Allow the use of print() in examples ] diff --git a/pyproject.toml b/pyproject.toml index 4f2c3c99..c635c485 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,7 @@ max-attributes = 20 addopts = "--cov" asyncio_mode = "auto" -[tool.ruff] +[tool.ruff.lint] ignore = [ "ANN101", # Self... explanatory "ANN102", # cls... just as annoying as ANN101 @@ -134,17 +134,17 @@ ignore = [ ] select = ["ALL"] -[tool.ruff.flake8-pytest-style] +[tool.ruff.lint.flake8-pytest-style] fixture-parentheses = false mark-parentheses = false -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["demetriek"] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 25 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "src/demetriek/models.py" = ["TCH002", "TCH003"] [build-system] diff --git a/tests/ruff.toml b/tests/ruff.toml index b346c562..6a68b95a 100644 --- a/tests/ruff.toml +++ b/tests/ruff.toml @@ -1,6 +1,7 @@ # This extend our general Ruff rules specifically for tests extend = "../pyproject.toml" +[lint] extend-select = [ "PT", # Use @pytest.fixture without parentheses ]