-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (76 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
88 lines (76 loc) · 1.88 KB
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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "meshcore-uconsole"
version = "1.9.0"
description = "GTK-based meshcore console for Raspberry Pi"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"pymc-core>=0.1.0",
"pymc-core[hardware]>=0.1.0; platform_system == 'Linux'",
"pynmea2>=1.18.0",
"segno>=1.6.0", # QR code generation
"gpsdclient>=1.3",
"pycayennelpp>=2.4.0",
]
[project.optional-dependencies]
gtk = [
"PyGObject>=3.48",
]
dev = [
"commitizen>=4.1",
"mypy>=1.7",
"pre-commit>=3.7",
"pytest>=8.3",
"pytest-asyncio>=0.21",
"pytest-cov>=4.1",
"ruff>=0.9",
]
[project.scripts]
meshcore-console = "meshcore_console.main:main"
[tool.uv]
package = true
[tool.hatch.build.targets.wheel]
packages = ["src/meshcore_console"]
[tool.hatch.build.targets.sdist]
include = [
"src/meshcore_console",
"tests",
"scripts",
"packaging",
"README.md",
"pyproject.toml",
"flake.nix",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# E402: Module level import not at top of file (required for gi.require_version)
ignore = ["E402"]
[tool.ruff.format]
# Use black-compatible defaults
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
no_implicit_optional = true
check_untyped_defs = true
# PyGObject stubs are incomplete, ignore missing imports for gi
[[tool.mypy.overrides]]
module = ["gi.*", "pynmea2", "serial", "RPi.*", "pymc_core.*", "spidev", "gpsdclient"]
ignore_missing_imports = true
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "pep621"
tag_format = "v$version"
update_changelog_on_bump = true
changelog_file = "CHANGELOG.md"
pre_bump_hooks = ["scripts/capture-screenshots.sh", "scripts/update-debian-changelog.sh"]