-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
38 lines (34 loc) · 1.2 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
exclude = [ ".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".ipynb_checkpoints", ".mypy_cache", ".nox", ".pants.d", ".pyenv", ".pytest_cache", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", ".vscode", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "site-packages", "venv",]
line-length = 120
indent-width = 4
target-version = "py310"
[lint]
# Enable Pyflakes `E` and `F` codes by default.
select = [
"F", # Pyflakes
"E", # Pycodestyle
"W", # Pycodestyle
"C90", # Mccabe complexity
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"S", # bandit (security)
"DTZ", # Enforce good datetime
# "BLE", # Blind exceptions
]
ignore = [
"E501", # Line length is done by black
"D202", # NoBlankLineAfterFunction
"S101", # Use of `assert` detected
"S106", # Ignore secrets
"B008", # Do not perform function call. Lots of false positives with typer.Option
"S108", # Insecure use of temporary
]
fixable = [ "ALL",]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"