-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (118 loc) · 4.01 KB
/
pyproject.toml
File metadata and controls
141 lines (118 loc) · 4.01 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
[project]
name = "dwload_server"
dynamic = ["version"]
description = "DWLOAD server implemented in Python"
license = {text = "GPL-3.0-or-later"}
readme = "README.md"
authors = [
{name = 'Jens Diemer', email = 'dwload_server@jensdiemer.de'}
]
requires-python = ">=3.11"
dependencies = [
"dragonlib", # https://github.com/6809/dragonlib
"pyserial", # https://github.com/pyserial/pyserial
"cli-base-utilities>=0.17.0", # https://github.com/jedie/cli-base-utilities
"bx_py_utils", # https://github.com/boxine/bx_py_utils
"tyro", # https://github.com/brentyi/tyro
"rich", # https://github.com/Textualize/rich
]
[dependency-groups]
dev = [
"manageprojects", # https://github.com/jedie/manageprojects
"urllib3", # for bx_py_utils.test_utils.deny_requests.deny_any_real_request() in tests
"uv", # https://github.com/astral-sh/uv
"hatchling", # https://github.com/pypa/hatch/tree/master/backend
"nox", # https://github.com/wntrblm/nox
"coverage", # https://github.com/nedbat/coveragepy
"ruff", # https://github.com/astral-sh/ruff
"codespell", # https://github.com/codespell-project/codespell
"EditorConfig", # https://github.com/editorconfig/editorconfig-core-py
"pip-audit", # https://github.com/pypa/pip-audit
"mypy", # https://github.com/python/mypy
"twine", # https://github.com/pypa/twine
"pre-commit", # https://github.com/pre-commit/pre-commit
"typeguard", # https://github.com/agronholm/typeguard/
]
[project.urls]
Documentation = "https://github.com/6809/DwLoadServer"
Source = "https://github.com/6809/DwLoadServer"
[project.scripts]
dwload_server_app = "dwload_server.__main__:main"
dwload_server_dev = "dwload_server.cli_dev:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["dwload_server"]
[tool.hatch.version]
path = "dwload_server/__init__.py"
[tool.cli_base.pip_audit]
strict=true
require_hashes=true
ignore-vuln=[]
[tool.cli_base]
version_module_name = "dwload_server" # Used by "update-readme-history" git hook
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
line-length = 120
exclude = [
".*/",
]
[tool.ruff.lint]
preview = true # Needed for some of the rules
extend-select = [
"E", # pycodestyle: https://docs.astral.sh/ruff/rules/#error-e
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"E402", # https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/
"E731", # https://docs.astral.sh/ruff/rules/lambda-assignment/
]
[tool.ruff.lint.isort]
# https://docs.astral.sh/ruff/settings/#lintisort
lines-after-imports = 2
[tool.ruff.format]
quote-style = "single"
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
source = ['.']
command_line = '-m unittest --verbose --locals --buffer'
[tool.coverage.report]
omit = ['.*', '*/tests/*']
skip_empty = true
fail_under = 25
show_missing = true
exclude_lines = [
'if self.debug:',
'pragma: no cover',
'raise NotImplementedError',
'if __name__ == .__main__.:',
]
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
allow_redefinition = true # https://github.com/python/mypy/issues/7165
show_error_codes = true
plugins = []
exclude = ['.venv', 'tests']
[manageprojects] # https://github.com/jedie/manageprojects
initial_revision = "ae7c1ba"
initial_date = 2025-12-16T19:28:11+01:00
cookiecutter_template = "https://github.com/jedie/cookiecutter_templates/"
cookiecutter_directory = "uv-python"
applied_migrations = [
"ae7c1ba", # 2025-12-16T19:28:11+01:00
]
[manageprojects.cookiecutter_context.cookiecutter]
full_name = "Jens Diemer"
github_username = "jedie"
author_email = "dwload_server@jensdiemer.de"
package_name = "dwload_server"
package_version = "0.6.0"
package_description = "DWLOAD server implemented in Python"
package_url = "https://github.com/6809/DwLoadServer"
issues_url = "https://github.com/6809/DwLoadServer/issues"
license = "GPL-3.0-or-later"
_template = "https://github.com/jedie/cookiecutter_templates/"