Skip to content

Commit 854e2e2

Browse files
committed
Use ruff for formatting
1 parent 759f92c commit 854e2e2

3 files changed

Lines changed: 4 additions & 75 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dev = [
3838
"pytest-httpserver>=1.0.10",
3939
]
4040
lint = [
41-
"black>=25.1.0",
4241
"flake8>=7.2.0",
4342
"mypy>=1.15.0",
4443
"pylint>=3.3.6",
@@ -59,11 +58,6 @@ requires = [
5958
]
6059
build-backend = "setuptools.build_meta"
6160

62-
[tool.black]
63-
# src is showing up in our GitHub linting builds. It seems to
64-
# contain deps.
65-
extend-exclude = '^/src/'
66-
6761
[tool.ruff.lint]
6862
select = ["ALL"]
6963
ignore = [
@@ -73,9 +67,6 @@ ignore = [
7367
# documenting magic methods
7468
"D105",
7569

76-
# Line length. We let black handle this for now.
77-
"E501",
78-
7970
# Don't bother with future imports for type annotations
8071
"FA100",
8172

@@ -124,10 +115,10 @@ dependency_groups = [
124115
"lint",
125116
]
126117
commands = [
127-
["black", "--check", "--diff", "."],
128118
["flake8", "minfraud"],
129119
["mypy", "minfraud", "tests"],
130120
["pylint", "minfraud"],
121+
["ruff", "format", "--check", "--diff", "."],
131122
]
132123

133124
[tool.tox.gh.python]

tests/test_webservice.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ def test_200_with_no_risk_score_reasons(self) -> None:
317317
def test_200_with_no_body(self) -> None:
318318
with self.assertRaisesRegex(
319319
MinFraudError,
320-
"Received a 200 response but could not decode the response as"
321-
" JSON: b?'?'?",
320+
"Received a 200 response but could not decode the response as JSON: b?'?'?",
322321
):
323322
self.create_success(text="")
324323

uv.lock

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

0 commit comments

Comments
 (0)