Skip to content

Commit 5986c5f

Browse files
committed
chore: update ruff config
Signed-off-by: Daniel Bluhm <[email protected]>
1 parent 79875a3 commit 5986c5f

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

pyproject.toml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,32 @@ authlib = [
3232
requires = ["pdm-backend"]
3333
build-backend = "pdm.backend"
3434

35+
[tool.pdm.dev-dependencies]
36+
dev = [
37+
"pytest>=7.4.3",
38+
"pytest-ruff>=0.1.1",
39+
"pre-commit>=3.5.0",
40+
"ruff>=0.4.1",
41+
"pytest-asyncio>=0.21.1",
42+
"pytest-cov>=4.1.0",
43+
]
44+
3545
[tool.pytest.ini_options]
3646
addopts = "--doctest-glob README.md --ruff --cov didcomm_messaging"
3747

3848
[tool.ruff]
39-
select = ["E", "F", "C", "D", "TID"]
49+
line-length = 90
50+
extend-exclude = ["example*.py"]
4051

52+
[tool.ruff.lint]
53+
select = ["E", "F", "C", "D", "TID"]
4154
ignore = [
4255
# Google Python Doc Style
4356
"D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407",
4457
"D408", "D409", "D413",
4558
"D202", # Allow blank line after docstring
4659
]
47-
48-
line-length = 90
49-
50-
extend-exclude = ["example*.py"]
51-
52-
[tool.ruff.per-file-ignores]
53-
"**/{tests}/*" = ["F841", "D", "E501"]
54-
55-
[tool.pdm.dev-dependencies]
56-
dev = [
57-
"pytest>=7.4.3",
58-
"pytest-ruff>=0.1.1",
59-
"pre-commit>=3.5.0",
60-
"ruff>=0.4.1",
61-
"pytest-asyncio>=0.21.1",
62-
"pytest-cov>=4.1.0",
63-
]
60+
per-file-ignores = {"**/{tests}/*" = ["F841", "D", "E501"]}
6461

6562
[tool.coverage.report]
6663
exclude_lines = ["pragma: no cover", "@abstract"]

0 commit comments

Comments
 (0)