-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
49 lines (42 loc) · 1.24 KB
/
pyproject.toml
File metadata and controls
49 lines (42 loc) · 1.24 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
[tool.ruff]
# Exclude support directory from import checks since it has special structure
extend-exclude = ["tests/support/__init__.py"]
# Target Python 3.11+
target-version = "py311"
# Line length
line-length = 100
[tool.ruff.lint]
# Enable these 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
"TCH", # flake8-type-checking
]
# Ignore specific rules
ignore = [
"E501", # Line too long (handled by formatter)
"N802", # Function name should be lowercase (pytest fixtures can be CamelCase)
]
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with 4 spaces
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "*.py"
python_classes = "Test*"
python_functions = "test_*"
norecursedirs = ["tests/support"]
# Add tests dir to pythonpath so imports work without __init__.py
pythonpath = ["tests"]
# Disable cache to avoid __pycache__ directories
# Enable random test order to catch ordering dependencies
addopts = "-p no:cacheprovider -p randomly"