-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
44 lines (42 loc) · 1.36 KB
/
ruff.toml
File metadata and controls
44 lines (42 loc) · 1.36 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
target-version = "py39"
line-length = 100
extend-include = ["*.ipynb"]
[lint]
typing-modules = ["flow360.component.types"]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"NPY201", # numpy 2.* compatibility check
"UP",
"W", # pycodestyle warnings
]
ignore = [
"B006", # allow mutable defaults for notebooks
"B007", # Loop control variable not used within loop body
"B008", # do not perform function calls in argument defaults
"B028", # stacklevel
"B904",
"B905", # `zip()` without an explicit `strict=` parameter
"C408", # Unnecessary `dict` call
"C417", # allow map
"C901", # too complex
"E402", # module level import not at top of file
"E501", # line too long (handled by formatter)
"E722", # we'll allow bare excepts in notebooks
"E731", # allow lambda assignment
"F401", # imported but unused (common in notebooks for exploration)
"NPY201", # allow numpy<2 for now
"UP006", # type annotation with Tuple[float] messes up pydantic
"UP007", # use x | y instead of union[x,y] (does not work)
"UP035",
"UP038",
]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true