Skip to content

Commit 6d3098a

Browse files
committed
lint: add linting
1 parent 4e3418c commit 6d3098a

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,33 @@ packages = ["src/deepset_mcp"]
2525
dev = [
2626
"pytest"
2727
]
28+
lint = [
29+
"ruff",
30+
]
2831

2932
[tool.pytest.ini_options]
3033
testpaths = ["test"]
3134

35+
[tool.ruff]
36+
line-length = 120
37+
target-version = "py311"
38+
include = ["pyproject.toml", "src/**/*.py", "test/**/*.py"]
39+
40+
[tool.ruff.lint]
41+
select = [
42+
"E", # pycodestyle errors
43+
"W", # pycodestyle warnings
44+
"F", # pyflakes
45+
"I", # isort
46+
"B", # flake8-bugbear
47+
"C4", # flake8-comprehensions
48+
"UP", # pyupgrade
49+
"D", # docstrings
50+
]
51+
isort = { combine-as-imports = true, known-first-party = ["deepset_mcp"] }
52+
53+
[tool.ruff.lint.pydocstyle]
54+
convention = "pep257"
55+
56+
3257

uv.lock

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

0 commit comments

Comments
 (0)