forked from open-feature/python-sdk-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
53 lines (48 loc) · 806 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
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
exclude = [
".git",
".venv",
"__pycache__",
"venv",
"providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/proto/*"
]
target-version = "py38"
[lint]
select = [
"A",
"B",
"C4",
"C90",
"E",
"F",
"FLY",
"FURB",
"I",
"LOG",
"N",
"PERF",
"PGH",
"PLC",
"PLR0913",
"PLR0915",
"RUF",
"S",
"SIM",
"T10",
"T20",
"UP",
"W",
"YTT",
]
ignore = [
"E501", # the formatter will handle any too long line
]
[lint.isort]
known-first-party = ["openfeature"]
[lint.per-file-ignores]
"**/tests/**/*" = ["S101"]
[lint.pylint]
max-args = 6
max-statements = 30
[lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true