-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (65 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (65 loc) · 1.89 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tool.ruff]
line-length = 200
target-version = "py311"
exclude = [
"dev", # Development folder, skip checks
# Exclude Python system paths and environments
"**/AppData/**",
"**/Python*/**",
"**/site-packages/**",
"**/venv/**",
"**/.venv/**",
"**/env/**",
"**/.env/**",
"**/node_modules/**",
"**/__pycache__/**",
"**/.pytest_cache/**",
"**/.ruff_cache/**",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long (handled by formatter)
"E203", # whitespace before ':'
"W293", # blank line contains whitespace (formatting for readability)
"W291", # trailing whitespace (formatting for comment alignment)
"W292", # no newline at end of file (not critical)
"F541", # f-string without placeholders (useful for future extension)
"C901", # function is too complex (not critical, may be justified)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint.isort]
known-first-party = ["app", "plugins", "tools"]
[tool.ruff.lint.mccabe]
max-complexity = 15 # Function complexity limit (default is 10)
[tool.pytest.ini_options]
testpaths = ["tests", "plugins", "tools"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = ["."]
markers = [
"unit: Unit tests - isolated module tests",
"integration: Integration tests - component interaction tests",
"asyncio: Asynchronous tests",
]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"-p", "no:cacheprovider",
]