-
Notifications
You must be signed in to change notification settings - Fork 137
/
ruff.toml
37 lines (34 loc) · 1.32 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
target-version = "py39"
exclude = [".evergreen/csfle/bottle.py"]
[lint]
extend-select = [
"B", # flake8-bugbear
"EXE", # flake8-executable
"F", # pyflakes
"FURB", # refurb
"I", # isort
"ICN", # flake8-import-conventions
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"RUF", # Ruff-specific
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"F811", # Redefinition of unused,
"F402", # Import shadowing,
"B006", # Do not use mutable data structures for argument defaults,
"B023", # Function definition does not bind loop variable `ax`
"B007", # Loop control variable `index` not used within loop body
"B904", # Within an `except` clause, raise exceptions with `raise ... from err`"
"RUF005", # Consider iterable unpacking instead of concatenation"
"RUF015", # Prefer `next(iter(queries.items()))` over single element slice
"F841", # Local variable `full_text_search_result` is assigned to but never used"
"UP006", # Use `list` instead of `List` for type annotation"
"UP035", # `typing.List` is deprecated, use `list` instead"
]
unfixable = ["F401"]
[lint.per-file-ignores]
".evergreen/ocsp/mock_ocsp_responder.py" = ["PLW"]
".evergreen/csfle/kms_*.py" = ["PLW"]
".evergreen/csfle/gcpkms/mock_server.py" = ["PLW"]