generated from aaronsteers/awesome-python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruff.toml
More file actions
79 lines (73 loc) · 2.65 KB
/
ruff.toml
File metadata and controls
79 lines (73 loc) · 2.65 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
73
74
75
76
77
78
79
# Ruff configuration for airbyte-connector-models
line-length = 100
target-version = "py310"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PL", # pylint
"TRY", # tryceratops
"RUF", # ruff-specific rules
]
ignore = [
"PLR0913", # Too many arguments
"TRY003", # Avoid specifying long messages outside exception class
]
# Candidates for future enablement (quality roadmap):
# "D", # pydocstyle - docstring conventions
# "S", # flake8-bandit - security testing
# "BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap
# "C90", # mccabe - complexity checking
# Per-file ignores for intentional design choices and generated code
[lint.per-file-ignores]
"airbyte_connector_models/connectors/_internal/base_record.py" = [
"ANN401", # Allow Any for dict-like access methods
]
"airbyte_connector_models/connectors/**/*.py" = [
"E501", # Line too long (generated models may have long descriptions)
"RUF012", # Mutable class attributes (generated code pattern)
"N815", # mixedCase variable names (preserve original API field names)
"PLR0912", # Too many branches (generated nested models)
"F821", # Undefined name (forward references in generated code)
]
"airbyte_connector_models/metadata/**/*.py" = [
"E501", # Line too long (generated models may have long descriptions)
"RUF012", # Mutable class attributes (generated code pattern)
"N815", # mixedCase variable names (preserve original API field names)
"PLR0912", # Too many branches (generated nested models)
"F821", # Undefined name (forward references in generated code)
]
"src/generate/**/*.py" = [
"PLR0912", # Too many branches (complex manifest parsing logic)
"TRY300", # Return in try block (acceptable for early return pattern)
"SIM102", # Nested if statements (more readable for complex conditions)
]
"tests/**/*.py" = [
"ANN201", # Missing return type annotations (test methods don't need them)
]
[format]
quote-style = "double"
indent-style = "space"