Skip to content

Commit ea11c45

Browse files
committed
Add basic ruff config
1 parent f6d14dd commit ea11c45

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: pyproject.toml

+26
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,29 @@ maxminddb = ["py.typed"]
4343
# src is showing up in our GitHub linting builds. It seems to
4444
# contain deps.
4545
extend-exclude = '^/src/'
46+
47+
[tool.ruff.lint]
48+
select = ["ALL"]
49+
ignore = [
50+
# Skip type annotation on **_
51+
"ANN003",
52+
53+
# documenting magic methods
54+
"D105",
55+
56+
# Line length. We let black handle this for now.
57+
"E501",
58+
59+
# Don't bother with future imports for type annotations
60+
"FA100",
61+
62+
# Magic numbers for HTTP status codes seem ok most of the time.
63+
"PLR2004",
64+
65+
# pytest rules
66+
"PT009",
67+
"PT027",
68+
]
69+
70+
[tool.ruff.lint.per-file-ignores]
71+
"tests/*" = ["ANN201", "D"]

0 commit comments

Comments
 (0)