-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathruff.toml
More file actions
72 lines (60 loc) · 1.71 KB
/
ruff.toml
File metadata and controls
72 lines (60 loc) · 1.71 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
72
# SPDX-FileCopyrightText: 2025 Taras Paruta (partarstu@gmail.com)
#
# SPDX-License-Identifier: Apache-2.0
# Ruff configuration for the Agentic QA Framework
# https://docs.astral.sh/ruff/configuration/
line-length = 120
target-version = "py313"
# Exclude directories from linting
exclude = [
".git",
".venv",
"__pycache__",
".pytest_cache",
".ruff_cache",
"node_modules",
"orchestrator/ui/node_modules",
"allure-report",
"allure-results",
"local_models",
".agent",
]
[lint]
# Enable recommended rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
# Ignore specific rules
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function calls in argument defaults
"B904", # Within an except clause, raise exceptions with `raise ... from err`
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[lint.per-file-ignores]
# Tests can use assertions and have unused imports for fixtures
"tests/**/*.py" = ["S101", "F401"]
"conftest.py" = ["F401"]
[lint.isort]
known-first-party = ["agents", "common", "orchestrator", "config"]
[format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Respect magic trailing comma
skip-magic-trailing-comma = false
# Auto-detect the appropriate line ending
line-ending = "auto"