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 a88e4afCopy full SHA for a88e4af
pyproject.toml
@@ -39,6 +39,33 @@ 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
+ # Line length. We let black handle this for now.
52
+ "E501",
53
54
+ # Don't bother with future imports for type annotations
55
+ "FA100",
56
57
+ # Magic numbers for HTTP status codes seem ok most of the time.
58
+ "PLR2004",
59
60
+ # pytest rules
61
+ "PT009",
62
+ "PT027",
63
+]
64
65
+[tool.ruff.lint.per-file-ignores]
66
+"geoip2/{models,records}.py" = [ "D107", "PLR0913" ]
67
+"tests/*" = ["ANN201", "D"]
68
69
[tool.setuptools.package-data]
70
geoip2 = ["py.typed"]
71
0 commit comments