-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ruff.toml
More file actions
67 lines (52 loc) · 1.72 KB
/
.ruff.toml
File metadata and controls
67 lines (52 loc) · 1.72 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
61
62
63
64
65
66
67
# Exclude a variety of commonly ignored directories.
extend-exclude = ["tests/data", "geos-mesh/src/geos/mesh/model/_bar_label.py"]
line-length = 120
indent-width = 4
# Assume Python 3.9
target-version = "py39"
[lint]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "UP", # pyupgrade deactivate since python39
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN", # flake8-annotations
"C4", # flake8-comprehensions
# "I", # isort - manage by yapf
"D", # pydocstyle
]
ignore = [
"E501", # line too long, handled by yapf
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"D100",
"D101",
"D104", # Missing docstring in public package in __init__.py files
"UP007",
"ANN401", # allows Any return
]
[lint.pydocstyle]
convention = "google"
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = true
# Set the line length limit used when formatting code snippets in
# docstrings.
docstring-code-line-length = "dynamic"