-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
35 lines (31 loc) · 873 Bytes
/
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
[tool.ruff]
line-length = 100
ignore = [
# F403 "`from pythonic_testcase import *` used; unable to detect undefined names
# F405 "… may be undefined, or defined from star imports: …"
# Sometimes star imports are perfectly fine IMHO.
"F403",
"F405",
# E731: "Do not assign a `lambda` expression, use a `def`"
# I think assigning to lambda expressions is ok.
"E731",
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001",
# Special rule code to enforce that your noqa directives are "valid", in that
# the violations they say they ignore are actually being triggered on that line
# (and thus suppressed).
# replaces basically "yesqa"
"RUF100",
]
src = ["mjml", "tests"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["mjml"]
combine-as-imports = true