Skip to content

Commit 3a2828c

Browse files
committed
ruff.toml integrated into pyproject.toml. excluded the notebooks from linting
1 parent 4b121d8 commit 3a2828c

File tree

2 files changed

+18
-90
lines changed

2 files changed

+18
-90
lines changed

pyproject.toml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,22 @@ requires = [
8585
[tool.setuptools.packages.find]
8686
exclude = ["example", "example.*", "tests", "tests.*"]
8787

88-
#[tool.black]
89-
#line-length = 88
88+
[tool.ruff]
89+
line-length = 88
90+
# Keep Ruff aligned with project target version
91+
target-version = "py311"
92+
# Exclude individual files/patterns from Ruff linting/formatting
93+
exclude = [
94+
"tests/test_imports.py",
95+
"cookbook/*.ipynb",
96+
]
97+
98+
[tool.ruff.lint]
99+
# Keep the same selected rule sets as in ruff.toml
100+
select = ["F", "I"]
90101

91-
#[tool.isort]
92-
#profile = "black"
102+
[tool.ruff.format]
103+
# Formatting configuration
104+
quote-style = "double"
105+
indent-style = "space"
106+
line-ending = "auto"

ruff.toml

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)