-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (50 loc) · 1.38 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (50 loc) · 1.38 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.backends._legacy:_Backend"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"network: marks tests that require network access (deselect with '-m \"not network\"')",
]
[tool.coverage.run]
source = ["core", "plugins", "agent", "config", "providers"]
omit = ["*/__pycache__/*", "*/tests/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # naming
"W", # pycodestyle warnings
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"N802", # function name should be lowercase
"N803", # argument name should be lowercase
"N806", # variable in function should be lowercase
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # re-exports are normal in __init__.py
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"