Skip to content

Commit 27f2d0d

Browse files
committed
Switch to ruff for linting
1 parent bb00a90 commit 27f2d0d

File tree

2 files changed

+15
-118
lines changed

2 files changed

+15
-118
lines changed

pyproject.toml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ dev = [
3535
"pytest>=8.3.5",
3636
]
3737
lint = [
38-
"flake8>=7.2.0",
3938
"mypy>=1.15.0",
40-
"pylint>=3.3.6",
4139
"ruff>=0.11.6",
4240
]
4341

@@ -62,9 +60,18 @@ ignore = [
6260
# Skip type annotation on **_
6361
"ANN003",
6462

63+
# Redundant as the formatter handles missing trailing commas.
64+
"COM812",
65+
6566
# documenting magic methods
6667
"D105",
6768

69+
# Conflicts with D211
70+
"D203",
71+
72+
# Conflicts with D212
73+
"D213",
74+
6875
# Don't bother with future imports for type annotations
6976
"FA100",
7077

@@ -74,9 +81,13 @@ ignore = [
7481
# pytest rules
7582
"PT009",
7683
"PT027",
84+
# Using the built-in open is more appropriate for this library.
85+
"PTH123",
7786
]
7887

7988
[tool.ruff.lint.per-file-ignores]
89+
"docs/*" = ["ALL"]
90+
"setup.py" = ["ALL"]
8091
"tests/*" = ["ANN201", "D"]
8192

8293
[tool.tox]
@@ -106,10 +117,9 @@ dependency_groups = [
106117
"lint",
107118
]
108119
commands = [
109-
["ruff", "format", "--check", "--diff", "."],
110-
["flake8", "maxminddb"],
111120
["mypy", "maxminddb", "tests"],
112-
["pylint", "maxminddb"],
121+
["ruff", "check"],
122+
["ruff", "format", "--check", "--diff", "."],
113123
]
114124

115125
[tool.tox.gh.python]

uv.lock

Lines changed: 0 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)