-
Notifications
You must be signed in to change notification settings - Fork 5
/
ruff.toml
60 lines (48 loc) · 1.57 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
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
# List of file locations to exclude
exclude = [
'.sdk_env',
'protoc_gen_openapiv2',
'tamr',
'tamr_sdk/jobs/types_jobs.py',
'docs_src/conf.py'
]
# Line length and indentation same as Black
line-length = 88
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[lint]
# Setup for which rules are ignored or enabled.
# Enables Docstring enforcement (`D`), Pyflakes (`F`) and a subset of the
# pycodestyle (`E`) codes by default.
# Also include import sorting (`I`) and Pycodestyle warnings (`W`), and
# McCabe complexity (`C901`).
select = ["C901", "D", "E4", "E7", "E9", "F", "I", "W"]
ignore = ["D213", "D211"]
pydocstyle.convention = "google"
# 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]+?))$"
[format]
# Like Black, use double quotes for strings
quote-style = "double"
# Like Black, indent with spaces, rather than tabs
indent-style = "space"
skip-magic-trailing-comma = true
# Like Black, automatically detect the appropriate line ending
line-ending = "auto"
# If true, enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[lint.isort]
split-on-trailing-comma=false
[lint.mccabe]
max-complexity = 6