-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathruff.toml
More file actions
48 lines (44 loc) · 1.51 KB
/
ruff.toml
File metadata and controls
48 lines (44 loc) · 1.51 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
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
lint.ignore = [
"D203", # one-blank-line-before-class (conflicts with D211)
"D212", # multi-line-summary-first-line (conflicts with D213)
"D107", # missing docstring in __init__
"D105", # missing docstring in magic method
"D100", # missing module docstring (optional for smaller scripts)
"E501", # line too long (handled by formatter)
"D403", # ignore doc capitalization
"D415", # ignore doc punctuation
]
exclude = [
"docs",
]
target-version = "py310"
line-length = 99
[lint.pydocstyle]
convention = "google"
[lint.per-file-ignores]
"__init__.py" = ["F401"] # Unused imports in __init__ files
"src/jabs/scripts/cli/cli.py" = [
"D301", # Click uses \b in docstrings to control help formatting
"D412", # Click Examples sections look better with a blank line before \b blocks
]
"src/jabs/scripts/cli/sample_pose_intervals.py" = [
"D301", # Click uses \b in docstrings to control help formatting
]
"src/jabs/scripts/cli/postprocessing.py" = [
"D301", # Click uses \b in docstrings to control help formatting
"D412", # Click preformatted blocks look better with a blank line before \b
]
"src/jabs/scripts/cli/sample_frames.py" = [
"D301", # Click uses \b in docstrings to control help formatting
]