-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (146 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
162 lines (146 loc) · 3.75 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "himl"
dynamic = ["version"]
description = "A hierarchical config using YAML in Python"
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "Adobe", email = "noreply@adobe.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
requires-python = ">=3.10"
dependencies = [
"PyYAML==6.0.3",
"deepmerge==2.0",
"pathlib2==2.3.7.post1",
]
[project.optional-dependencies]
s3 = ["boto3==1.42.9"]
aws = ["boto3==1.42.9"] # Alias for s3 for backward compatibility
vault = ["hvac==2.4.0"]
all = ["boto3==1.42.9", "hvac==2.4.0"]
dev = [
"pytest==9.0.2",
"pytest-cov==7.0.0",
"pytest-mock==3.15.1",
"pytest-xdist==3.8.0",
"coverage[toml]==7.13.0",
"black==25.12.0",
"flake8==7.3.0",
"mypy==1.19.1",
"types-PyYAML==6.0.12.20250915",
"boto3==1.42.9",
"hvac==2.4.0",
"bump-my-version==1.2.5",
"build==1.3.0",
"twine==6.2.0",
]
[project.scripts]
himl = "himl.main:run"
himl-config-merger = "himl.config_merger:run"
[project.urls]
Homepage = "https://github.com/adobe/himl"
Repository = "https://github.com/adobe/himl"
Documentation = "https://github.com/adobe/himl#readme"
"Bug Tracker" = "https://github.com/adobe/himl/issues"
[tool.setuptools_scm]
write_to = "himl/_version.py"
[tool.bumpversion]
current_version = "0.20.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
tag = true
sign_tags = false
tag_name = "{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "[RELEASE] - Release version {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "README.md"
search = "Latest version is: **{current_version}**"
replace = "Latest version is: **{new_version}**"
[[tool.bumpversion.files]]
filename = "himl/main.py"
search = "version='%(prog)s v{{version}}'.format(version=\"{current_version}\")"
replace = "version='%(prog)s v{{version}}'.format(version=\"{new_version}\")"
[tool.coverage.run]
source = ["himl"]
omit = [
"*/tests/*",
"*/test_*",
"himl/_version.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"boto3.*",
"botocore.*",
"hvac.*",
"deepmerge.*",
"pathlib2.*",
]
ignore_missing_imports = true