Skip to content

Commit 24226c0

Browse files
committed
Add basic ruff config
1 parent 0468503 commit 24226c0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pyproject.toml

+27
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,33 @@ test = [
3737
"pytest-httpserver>=1.0.10",
3838
]
3939

40+
[tool.ruff.lint]
41+
select = ["ALL"]
42+
ignore = [
43+
# Skip type annotation on **_
44+
"ANN003",
45+
46+
# documenting magic methods
47+
"D105",
48+
49+
# Line length. We let black handle this for now.
50+
"E501",
51+
52+
# Don't bother with future imports for type annotations
53+
"FA100",
54+
55+
# Magic numbers for HTTP status codes seem ok most of the time.
56+
"PLR2004",
57+
58+
# pytest rules
59+
"PT009",
60+
"PT027",
61+
]
62+
63+
[tool.ruff.lint.per-file-ignores]
64+
"minfraud/models,.py" = [ "D107", "PLR0913" ]
65+
"tests/*" = ["ANN201", "D"]
66+
4067
[tool.setuptools.package-data]
4168
minfraud = ["py.typed"]
4269

0 commit comments

Comments
 (0)