-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (125 loc) · 3.4 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (125 loc) · 3.4 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "vtap100"
dynamic = ["version"]
description = "Configuration generator for Dot Origin VTAP100 NFC reader"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "HEIDI Team" }
]
keywords = ["nfc", "vtap100", "dotorigin", "apple-wallet", "google-wallet", "vas", "smart-tap"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Hardware",
]
dependencies = [
"pydantic>=2.0",
"rich>=13.0",
"click>=8.0",
"pyyaml>=6.0",
"textual>=0.40.0",
"pyperclip>=1.11.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.24.0",
"coverage[toml]>=7.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"pre-commit>=4.0.0",
"types-PyYAML>=6.0",
"types-pyperclip>=1.9",
]
[project.scripts]
vtap100 = "vtap100.cli:main"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.hooks.vcs]
version-file = "src/vtap100/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/vtap100"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
parallel = true
branch = true
source = ["vtap100"]
relative_files = true
[tool.coverage.report]
skip_covered = true
skip_empty = true
fail_under = 93
# Coverage increased to 93%+ after adding comprehensive branch coverage tests.
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-local-folder = ["vtap100"]
force-single-line = true
force-sort-within-sections = true
case-sensitive = false
lines-after-imports = 2
no-sections = true
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = "vtap100.cli"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disable_error_code = ["arg-type", "union-attr", "attr-defined", "misc"]
[[tool.mypy.overrides]]
module = "vtap100.tui.*"
disallow_untyped_defs = false
disable_error_code = ["attr-defined", "arg-type", "no-untyped-def", "assignment", "no-any-return"]
[[tool.mypy.overrides]]
module = "vtap100.parser"
disable_error_code = ["assignment", "attr-defined"]