-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (99 loc) · 3.35 KB
/
pyproject.toml
File metadata and controls
112 lines (99 loc) · 3.35 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
[project]
name = "AutoGitSemVer"
version = "0.0.0"
# ^^^^^
# Wheel names will be generated according to this value. Do not manually modify this value; instead
# update it according to committed changes by running this command from the root of the repository:
#
# uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./pyproject.toml ./src
description = "Generate a semantic version based on commits made to a git repository."
readme = "README.md"
authors = [
{ name = "David Brownell", email = "github@DavidBrownell.com" }
]
requires-python = ">= 3.10"
dependencies = [
"dbrownell-common>=0.14.6",
"gitpython>=3.1.44",
"jsonschema>=4.23.0",
"rtyaml>=1.0.0",
"semantic-version>=2.10.0",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development",
"Topic :: System :: System Shells",
"Topic :: Terminals",
"Topic :: Utilities",
]
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://github.com/davidbrownell/AutoGitSemVer"
Documentation = "https://github.com/davidbrownell/AutoGitSemVer"
Repository = "https://github.com/davidbrownell/AutoGitSemVer"
[project.scripts]
AutoGitSemVer = "AutoGitSemVer:EntryPoint.app"
autogitsemver = "AutoGitSemVer:EntryPoint.app"
[build-system]
requires = ["uv_build>=0.8.15,<0.9.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"dbrownell-commitemojis>=0.1.1",
"pre-commit>=4.2.0",
"py-minisign>=0.12.0",
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"ruff>=0.12.3",
"ty>=0.0.27",
]
[tool.pytest.ini_options]
addopts = "--verbose -vv --capture=no --cov=AutoGitSemVer --cov-report term --cov-report xml:coverage.xml --cov-fail-under=90.0"
python_files = [
"**/*Test.py",
]
[tool.ruff]
line-length = 110
[tool.ruff.lint]
exclude = ["tests/**"]
ignore = [
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"BLE001", # Do not catch blind exception: `Exception`
"COM812", # Trailing comma missing
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__` method
"D202", # No blank lines allowed after function docstring
"E501", # Line too long
"FIX002", # Line contains TODO, consider resolving the issue
"I001", # Import block is un-sorted or un-formatted
"N802", # Function name `xxx` should be lowercase
"N999", # Invalid module name
"RSE102", # Unnecessary parentheses on raise exception
"S101", # Use of assert detected
"TC006", # Add quotes to type expression in `typing.cast()`
"TD002", # Missing author in TODO
"TD003", # Missing issue link for this TODO
"TRY002", # Create your own exception
"TRY300", # Consider moving this statement to an `else` block
"UP032", # Use f-string instead of `format` call
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pylint]
max-args = 10
max-branches = 20
max-returns = 20
[tool.uv.build-backend]
module-name = "AutoGitSemVer"