Skip to content

Commit 401ffb4

Browse files
committed
Add PyPI badges, enable 14 new ruff rule sets (ASYNC, C4, DTZ, ERA, FURB, LOG, PERF, PLC, PLE, PLR, PLW, PT, RSE, T20)
1 parent b8351a3 commit 401ffb4

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[![Integration Tests](https://github.com/cloud-py-api/nc-mcp-server/actions/workflows/tests-integration.yml/badge.svg)](https://github.com/cloud-py-api/nc-mcp-server/actions/workflows/tests-integration.yml)
66
[![codecov](https://codecov.io/gh/cloud-py-api/nc-mcp-server/graph/badge.svg)](https://codecov.io/gh/cloud-py-api/nc-mcp-server)
77

8-
![PythonVersion](https://img.shields.io/badge/python-3.12%20%7C%203.13%20%7C%203.14-blue)
8+
[![PyPI](https://img.shields.io/pypi/v/nc-mcp-server.svg)](https://pypi.org/project/nc-mcp-server/)
9+
[![Python](https://img.shields.io/pypi/implementation/nc-mcp-server)](https://pypi.org/project/nc-mcp-server/)
910

1011
> **Experimental** — This repository is fully maintained by AI (Claude). It serves as an experiment in autonomous AI-driven open-source development.
1112

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,40 @@ target-version = "py312"
4949
line-length = 120
5050
lint.select = [
5151
"A",
52+
"ASYNC",
5253
"B",
5354
"C",
55+
"C4",
56+
"DTZ",
5457
"E",
58+
"ERA",
5559
"F",
60+
"FURB",
5661
"G",
5762
"I",
63+
"LOG",
64+
"PERF",
5865
"PIE",
66+
"PLC",
67+
"PLE",
68+
"PLR",
69+
"PLW",
70+
"PT",
5971
"Q",
6072
"RET",
73+
"RSE",
6174
"RUF",
6275
"S",
6376
"SIM",
77+
"T20",
6478
"UP",
6579
"W",
6680
]
6781
lint.extend-ignore = [
6882
"I001",
83+
"PLR0913",
84+
"PLR2004",
85+
"PLW0603",
6986
"S311",
7087
"S603",
7188
"SIM117",

src/nextcloud_mcp/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _parse_propfind(xml_text: str, user: str) -> list[dict[str, Any]]:
228228
is_dir = resource_type is not None and resource_type.find(f"{{{DAV_NS}}}collection") is not None
229229

230230
entry: dict[str, Any] = {
231-
"path": path if path else "/",
231+
"path": path or "/",
232232
"is_directory": is_dir,
233233
}
234234

0 commit comments

Comments
 (0)