-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
45 lines (40 loc) · 1.23 KB
/
ruff.toml
File metadata and controls
45 lines (40 loc) · 1.23 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
# Ruff configuration for UniDash
# https://docs.astral.sh/ruff/configuration/
target-version = "py313"
line-length = 88
src = ["api/*/src"]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"D", # pydocstyle - docstrings
]
ignore = [
"E501", # line too long (handled by black)
# D100/D104: Module and package docstrings are optional for now.
# Rationale: __init__.py files are often empty or contain only imports,
# and adding docstrings would be boilerplate. Function/class docstrings
# are still enforced (D101-D107). This is a deliberate project decision.
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]
[lint.pydocstyle]
convention = "google" # Google style docstrings
[lint.isort]
known-first-party = [
"unidash_shared",
"unidash_db",
"unidash_sso",
"unidash_api",
"unidash_admin",
"unidash_backup",
]
[lint.per-file-ignores]
"**/tests/**" = ["ARG"] # Allow unused arguments in tests