forked from flowcean/flowcean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
60 lines (54 loc) · 1.47 KB
/
Copy pathruff.toml
File metadata and controls
60 lines (54 loc) · 1.47 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
line-length = 79
extend-exclude = ["*/_generated/*_pb2*", "*.ipynb"]
target-version = "py310"
[format]
preview = false
docstring-code-format = true
docstring-code-line-length = 80
exclude = ["*.ipynb"]
[lint]
preview = false
select = ["ALL"]
ignore = [
"A005", # module shadows standard library imports
"ANN401", # dynamically typed expressions (typing.Any) are disallowed
"CPY001", # missing copyright notice
"D10", # missing docstrings
"ERA001", # commented-out code
"ISC001", # implicit string concatenation
"N818", # Error suffix on exceptions
"PD", # pandas
"PLC0415", # import at top of file
"PLR0913", # too many arguments
"S301", # pickle usage
"S311", # pseudo-random number generation
"T201", # allow print
"TD", # To-Do rules
]
[lint.per-file-ignores]
"**/examples/**/*" = [
"D10", # missing docstrings
"INP001", # implicit namespace packages
"T", # print
]
"**/scripts/*" = [
"D10", # missing docstrings
"INP001", # implicit namespace packages
"T", # print
]
"**/tests/**/*" = [
"D10", # missing docstrings
"INP001", # implicit namespace packages
"PLC1901", # compare to empty string
"PLR2004", # magic value comparison
"PLR6301", # no self use in methods
"S101", # asserts
"TID252", # relative imports
]
[lint.isort]
known-first-party = ["flowcean"]
[lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[lint.pydocstyle]
convention = "google"