1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
[project]
name = "debputy"
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
]
license = "Apache-2.0 AND GPL-2.0-or-later"
license-files = ["debian/copyright"]
dependencies = [
"python-debian",
"ruyaml",
"colored",
"colorlog",
]
requires-python = ">=3.11"
[project.optional-dependencies]
lsp-minimal = [
"pygls",
"lsprotocol",
]
lsp = [
"pygls",
"lsprotocol",
"levenshtein",
]
junit = [
"junit.xml"
]
[project.urls]
homepage = "https://salsa.debian.org/debian/debputy"
source = "https://salsa.debian.org/debian/debputy.git"
issues = "https://salsa.debian.org/debian/debputy/issues"
releasenotes = "https://salsa.debian.org/debian/debputy/-/blob/main/debian/changelog"
[build-system]
requires = ["hatchling"]
build-backend = ["hatchling.build"]
[project.scripts]
debputy = "debputy.commands.debputy_cmd.__main__:main"
[tool.hatch.version]
source = "code"
path = "src/debputy/version.py"
expression = "str(__version__)"
[tool.hatch.build.targets.sdist]
only-include = [
"debputy",
"devutils",
"docs",
"po",
"self-hosting-plugins",
"src",
"tests",
"typing-stubs",
"README.md",
"THANKS.md",
"pyproject.toml",
]
[tool.hatch.build.targets.wheel.force-include]
"debputy/plugins" = "debputy/plugins"
[tool.coverage.run]
branch = true
source = ["."]
omit = [
"*/debputy/lsp/vendoring/*",
"*/lib/python*/*",
"*/dist-packages/*",
"*/tests/*",
]
[tool.coverage.report]
# Lets not force ourselves to sprinkle "pragma: no cover" in the following cases
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Ignore code that is not intended to be run
"if TYPE_CHECKING:",
"raise AssertionError",
# Ignore "..." (overload)
"^\\s+[.][.][.]\\s*$",
# We cannot hit this via tests. On the flip-side, we should ensure this
# only call a main() (or a similar function).
"if __name__ == .__main__.:",
# Do not complain about abstract methods as they are not run
"@(abc\\.)?abstractmethod",
"raise NotImplementedError([(][)]|\\s*$)",
]
[tool.pytest.ini_options]
addopts = "--doctest-modules"
norecursedirs = [
"local",
"debian",
]
pythonpath = [
"src"
]
testpaths = [
"src",
"tests",
"self-hosting-plugins",
]
[tool.mypy]
mypy_path = "typing-stubs"
|