forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (95 loc) · 1.71 KB
/
pyproject.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.black]
line-length = 100
target-version = ['py38']
force-exclude = '''
/(
mlflow/protos/
| mlflow/ml_package_versions\.py$
| tests/protos/
| examples/recipes/
)
'''
[tool.ruff]
line-length = 100
target-version = "py38"
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = [
"B006",
"E",
"F",
"C4",
"I",
"PLR0402",
"PT001",
"PT002",
"PT003",
"PT006",
"PT007",
"PT009",
"PT010",
"PT011",
"PT012",
"PT013",
"PT014",
"PT018",
"PT022",
"PT023",
"PT026",
"PT027",
"RUF010",
"RUF013",
"S307",
"UP004",
"UP008",
"UP011",
"UP012",
"UP015",
"UP030",
"UP031",
"UP032",
"UP034",
"SIM101",
"SIM103",
"SIM114",
"SIM115",
"SIM108",
"SIM210",
"SIM910",
"T20",
"TID252",
"TID251",
"W",
]
force-exclude = true
ignore = [
"E721", # type-comparison
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long
"E741", # ambiguous-variable-name
"F811", # redefined-while-unused
]
extend-exclude = [
"setup.py",
"docs",
"examples/recipes",
"mlflow/protos",
"mlflow/ml_package_versions.py",
"mlflow/server/js",
"mlflow/store/db_migrations",
"mlflow/temporary_db_migrations_for_pre_1_users",
"tests/protos",
]
[tool.ruff.per-file-ignores]
"dev/*" = ["T201", "PT018"]
"examples/*" = ["T20"]
"mlflow/*" = ["PT018"]
[tool.ruff.flake8-pytest-style]
mark-parentheses = false
fixture-parentheses = false
raises-require-match-for = ["*"]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.isort]
forced-separate = ["tests"]
[tool.ruff.flake8-tidy-imports.banned-api]
"pkg_resources".msg = "We're migrating away from pkg_resources. Please use importlib.resources or importlib.metadata instead."