-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (94 loc) · 2.52 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "chango"
dynamic = ["version"]
description = 'CHANgelog GOvernor for Your Project'
readme = "README.rst"
requires-python = ">=3.12"
license = "MIT"
keywords = ["releasenotes", "changelog", "development", "versioning"]
authors = [
{ name = "Hinrich Mahler", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Sphinx :: Extension",
]
dependencies = [
"pydantic-settings~=2.3",
"shortuuid~=1.0",
"sphinx~=8.1",
"tomlkit~=0.13",
"typer~=0.12",
]
[project.urls]
Documentation = "https://chango.readthedocs.io/"
Issues = "https://github.com/Bibo-Joshi/chango/issues"
Source = "https://github.com/Bibo-Joshi/chango"
# CLI
[project.scripts]
chango = "chango._cli:app"
# HATCH:
[tool.hatch.version]
path = "src/chango/__about__.py"
[tool.hatch.build]
packages = ["src/chango"]
# RUFF:
[tool.ruff]
line-length = 99
show-fixes = true
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
"G", "ISC", "PT", "ASYNC", "TCH", "SLOT", "PERF", "PYI", "FLY", "AIR", "RUF022",
"RUF023", "Q", "INP", "W", "YTT", "DTZ", "ARG"]
ignore = ["ISC001", "DTZ011"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"docs/**.py" = ["INP001"]
"tests/**.py" = ["PLR0913"]
"tests/data/**.py" = ["INP001"]
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
# MYPY:
[tool.mypy]
warn_unused_ignores = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
show_error_codes = true
python_version = "3.12"
# PYTEST:
[tool.pytest.ini_options]
pythonpath= ["src", "tests"]
# COVERAGE:
[tool.coverage.run]
source_pkgs = ["chango"]
branch = true
parallel = true
[tool.coverage.report]
exclude_also = [
"@overload",
"@abstractmethod",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"if __name__ == .__main__.:"
]
# CHANGO
[tool.chango]
sys_path = "changes"
chango_instance = { name= "chango_instance", module = "config" }