-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
79 lines (68 loc) · 1.59 KB
/
pyproject.toml
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
[project]
name = "tweaks-lite"
version = "1.0.0"
description = "A lightweight system configuration tool for GNOME"
authors = [
{name = "Jay W", email = "git.jaydoubleu@gmail.com"}
]
dependencies = [
"pygobject>=3.42.0",
"dbus-python>=1.3.2",
]
requires-python = ">=3.9"
license = {file = "COPYING"}
readme = "README.md"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
packages = ["src/tweakslite"]
[tool.hatch.build.targets.wheel]
packages = ["src/tweakslite"]
[tool.hatch.build.targets.wheel.shared-data]
"src/tweakslite/py.typed" = "tweakslite/py.typed"
[project.scripts]
tweaks-lite = "tweakslite.main:main"
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"pytest-mock>=3.10.0",
]
[tool.mypy]
python_version = "3.10" # Adjust to your Python version
# Ignore missing imports for specific modules
[[tool.mypy.overrides]]
module = [
"gi.*",
"gi.repository.*",
"dbus.*",
"dbus.mainloop.*",
"dbus.mainloop.glib.*"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = "-v --cov=src/tweakslite --cov-report=term-missing"
markers = [
"gtk: marks tests that require GTK initialization",
]
[tool.coverage.run]
source = ["src/tweakslite"]
relative_files = true
branch = true
omit = [
"tests/*",
"**/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]