-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (50 loc) · 1.34 KB
/
pyproject.toml
File metadata and controls
57 lines (50 loc) · 1.34 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tool.ruff]
# Target Python version
target-version = "py310"
# Line length (matching rdflib's flake8 config)
line-length = 88
# Include and exclude patterns
include = ["*.py"]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
"build",
"dist",
"*.egg-info",
]
[tool.ruff.lint]
# Enable common rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
# Ignore specific rules if needed
ignore = [
"E501", # line too long (handled by formatter, matches rdflib's flake8)
"F821", # undefined name (matches rdflib's flake8 W806 ignore)
"Q000", # quote style (preserved by formatter)
"Q001", # quote style (preserved by formatter)
"Q002", # quote style (preserved by formatter)
"Q003", # quote style (preserved by formatter)
]
[tool.ruff.format]
# Preserve existing quote styles (don't enforce single or double quotes)
quote-style = "preserve"
# Indent with spaces
indent-style = "space"
# Use 4 spaces for indentation
skip-magic-trailing-comma = false
# Line ending style
line-ending = "auto"
[tool.ruff.lint.isort]
# Import sorting configuration
known-first-party = ["pyld", "c14n"]