-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathruff.toml
30 lines (27 loc) · 1.32 KB
/
ruff.toml
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
line-length = 120
extend-exclude = [
"sostrades_core/sos_processes/test/test_script_gemseo/plot_gemseo_in_10_minutes.py",
"sostrades_core/sos_processes/test/test_script_gemseo_mda/plot_newtonraphson_sobieski.py"]
[lint]
select = ["I", "TCH", "PLC", "PLE", "F", "E", "W", "PERF", "PLW", "D", "FA"]
# extend-select = ["ALL"]
ignore = [
# Exceptions
"E501", # Line too long
"E722", # Do not use bare `except`
"F841", # F841 Local variable `xxx` is assigned to but never used
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D212", # [*] Multi-line docstring summary should start at the first line
"D300", # [*] Use triple double quotes `"""`
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood:
"D404", # First word of the docstring should not be "This"
"D415", # First line should end with a period, question mark, or exclamation point
"PERF203", # `try`-`except` within a loop incurs performance overhead
# WIP rules. To remove at some point
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D107", # Missing docstring in `__init__`
]