- root_set кодирует метку; parse_root вынесен в wiki/roots.py; PATCH wiki_root "" -> 422 - суррогаты в пачке страниц заменяются; dir_name экранирует ведущую точку; error у вложений - beautifulsoup4 и markdownify<2 объявлены; убраны неиспользуемые импорты и дубль _has_table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.4 KiB
TOML
39 lines
1.4 KiB
TOML
[project]
|
||
name = "jira-hub"
|
||
version = "0.1.0"
|
||
description = "Мост Jira для АРМ КА: зеркало задач, очередь команд, HTTP API, MCP"
|
||
requires-python = ">=3.13"
|
||
dependencies = [
|
||
"beautifulsoup4>=4.12",
|
||
"markdownify>=1.2.3,<2",
|
||
"mcp>=1.2,<2",
|
||
]
|
||
|
||
[project.scripts]
|
||
jira-hub = "jira_hub.cli:main"
|
||
|
||
[dependency-groups]
|
||
dev = ["pytest>=8"]
|
||
|
||
[build-system]
|
||
requires = ["hatchling"]
|
||
build-backend = "hatchling.build"
|
||
|
||
[tool.hatch.build.targets.wheel]
|
||
packages = ["src/jira_hub"]
|
||
|
||
[tool.pytest.ini_options]
|
||
testpaths = ["tests"]
|
||
# незакрытое соединение sqlite — ошибка набора: ResourceWarning из __del__ pytest выдаёт как
|
||
# PytestUnraisableExceptionWarning, поэтому нужны оба фильтра (hub-hygiene-d, решение 14)
|
||
filterwarnings = ["error::ResourceWarning", "error::pytest.PytestUnraisableExceptionWarning"]
|
||
|
||
[tool.uv]
|
||
# Python от uv (python-build-standalone): SQLite в нём своя. В SQLite 3.51.0–3.51.1 взаимная блокировка в unix-VFS
|
||
# вешает хаб под параллельными запросами (O-14, #29); у miniconda — 3.51.1
|
||
python-preference = "only-managed"
|
||
|
||
[tool.ruff.lint.per-file-ignores]
|
||
# фикстура api импортируется из test_wiki_sync (идиома pytest), а не определяется заново
|
||
"tests/test_wiki_api.py" = ["F811"]
|