forked from elastic/connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
26 lines (22 loc) · 872 Bytes
/
.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
select = ["A", "ASYNC", "I", "E", "F", "B", "C4", "T10", "T20", "EM", "ISC", "S"]
ignore = ["E501"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "C4", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT", "T10", "T20"]
unfixable = []
exclude = [
".git",
"__pycache__",
"lib",
"bin",
"include"
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
[per-file-ignores]
"connectors/*" = ["S608"]
"scripts/verify.py" = [ "EM" ]
"setup.py" = [ "EM" ]
"tests/*" = ["B017", "S101", "S"]
"tests/conftest.py" = [ "EM" ]
[isort]
known-first-party=["connectors", "tests"]