-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
177 lines (152 loc) · 4.54 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "alpax"
dynamic = ["version"]
description = 'Generate custom Ableton Live packs'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = []
authors = [
{ name = "Kevin Montag", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []
[project.urls]
Documentation = "https://github.com/kmontag/alpax#readme"
Issues = "https://github.com/kmontag/alpax/issues"
Source = "https://github.com/kmontag/alpax"
[tool.hatch.version]
path = "src/alpax/__about__.py"
[tool.hatch.envs.hatch-static-analysis]
# For better consistency across hatch versions and interoperability with other tools, export a local
# copy of hatch's internal ruff config. This file can be generated with:
#
# hatch fmt --check --sync
#
# See https://hatch.pypa.io/dev/config/internal/static-analysis/#persistent-config.
config-path = "ruff_defaults.toml"
# Explicitly specify the ruff version constraint.
#
# This can be further upgraded once the changes from https://github.com/pypa/hatch/pull/1588 make it
# into a hatch release.
dependencies = ["ruff~=0.4.5"]
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"pytest-asyncio~=0.23.7",
]
[tool.hatch.envs.coverage]
detached = true
dependencies = [
"coverage~=7.6.0",
]
[tool.hatch.envs.coverage.scripts]
combine = "coverage combine {args}"
report-xml = "coverage xml"
[tool.hatch.envs.types]
template = "hatch-test"
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/alpax tests}"
[tool.coverage.run]
source_pkgs = ["alpax", "tests"]
branch = true
parallel = true
omit = [
"src/alpax/__about__.py",
]
[tool.coverage.paths]
alpax = ["src/alpax", "*/alpax/src/alpax"]
tests = ["tests", "*/alpax/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.mypy]
disallow_untyped_defs = true
[tool.ruff]
# Use the local copy of the hatch defaults as a base.
extend = "ruff_defaults.toml"
# Default is 120.
line-length = 100
# Additional strict linter rules.
[tool.ruff.lint]
# - ARG: unused arguments
# - B: flake8-bugbear
# - E: pycodestyle errors
# - I: import sorting
# - W: pycodestyle warnings
extend-select = ["ARG", "B", "E", "I", "W"]
# Turn off strict max line length; B950 allows for exceeding the max
# line length in some cases.
extend-ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["alpax"]
[tool.semantic_release]
assets = []
# Work around not being able to install packages preemptively in the
# semantic_release environment. See
# https://github.com/python-semantic-release/python-semantic-release/issues/723.
build_command = "pip install hatch && hatch build"
build_command_env = []
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
allow_zero_version = true
no_git_verify = false
tag_format = "v{version}"
version_variables = ["src/alpax/__about__.py:__version__"]
[tool.semantic_release.branches.main]
match = "main"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
template_dir = "templates"
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = []
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = true
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf", "refactor"]
default_bump_level = 0
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
insecure = false
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true