-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (79 loc) · 2.19 KB
/
pyproject.toml
File metadata and controls
91 lines (79 loc) · 2.19 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
# SPDX-FileCopyrightText: 2024-2026 Nicolai Buchwitz <[email protected]>
#
# SPDX-License-Identifier: LGPL-2.1-or-later
[project]
name = "ptouch"
description = "Python library for Brother P-touch label printers"
version = "1.1.0"
readme = "README.md"
authors = [{ name = "Nicolai Buchwitz", email = "[email protected]" }]
maintainers = [{ name = "Nicolai Buchwitz", email = "[email protected]" }]
keywords = ["brother", "p-touch", "label", "printer", "raster"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Printing",
]
dependencies = [
"Pillow",
"packbits",
]
requires-python = ">= 3.11"
[project.urls]
Documentation = "https://ptouch.readthedocs.io/"
Repository = "https://github.com/nbuchwitz/ptouch"
Issues = "https://github.com/nbuchwitz/ptouch/issues"
[project.optional-dependencies]
usb = ["pyusb"]
dev = ["ruff", "mypy"]
test = ["pytest", "pytest-cov", "pyusb"]
docs = [
"sphinx>=7.0",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints>=1.24",
]
[project.scripts]
ptouch = "ptouch.__main__:main"
[tool.setuptools.package-dir]
"" = "src"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
lint.select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"Q", # flake8-quotes
]
lint.ignore = [
"D203", # incompatible with D211
"D213", # incompatible with D212
"D107", # undocumented-public-init
"ANN401", # allow Any type (needed for pyusb which lacks type stubs)
]
[tool.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["src/ptouch"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]