We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04260bf commit 974af04Copy full SHA for 974af04
pyproject.toml
@@ -39,6 +39,30 @@ test = [
39
"pytest-httpserver>=1.0.10",
40
]
41
42
+[tool.ruff.lint]
43
+select = ["ALL"]
44
+ignore = [
45
+ # Skip type annotation on **_
46
+ "ANN003",
47
+
48
+ # documenting magic methods
49
+ "D105",
50
51
+ # Don't bother with future imports for type annotations
52
+ "FA100",
53
54
+ # Magic numbers for HTTP status codes seem ok most of the time.
55
+ "PLR2004",
56
57
+ # pytest rules
58
+ "PT009",
59
+ "PT027",
60
+]
61
62
+[tool.ruff.lint.per-file-ignores]
63
+"geoip2/{models,records}.py" = [ "D107", "PLR0913" ]
64
+"tests/*" = ["ANN201", "D"]
65
66
[tool.setuptools.package-data]
67
geoip2 = ["py.typed"]
68
0 commit comments