-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
38 lines (31 loc) · 994 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tool.poetry.group.dev.dependencies]
ruff = "^0.6.9"
# Tool-specific configurations
# Ruff configuration (linter)
[tool.ruff]
line-length = 120 # Maximum allowed line length
exclude = [
"docs",
"examples",
"images",
"website",
]
[tool.ruff.format]
quote-style = "preserve" # Preserve existing quote style (single or double)
[tool.ruff.lint]
select = ["E", "F", "W"] # Select specific linting rules (E: Errors, F: Pyflakes, W: Warnings)
ignore = [
"F405", # Ignore 'import *' warnings
]
[tool.ruff.lint.isort]
force-single-line = true # Force single-line imports for better readability
# Black configuration (code formatter)
[tool.black]
line-length = 120 # Same line length limit as Ruff for consistency
target-version = ['py38'] # Target Python version for formatting
# Flake8 configuration (for additional linting, if needed)
[tool.flake8]
max-line-length = 120 # Align with Ruff's line length setting
ignore = [
"E501", # Ignore long line warnings
]