-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
195 lines (173 loc) · 4.25 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Build system requirements.
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
# Project metadata.
[project]
name = "dict2dict"
version = "0.4.1"
description = "Opinionated dictionary utilities for Python."
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [
{ name = "lykmapipo", email = "lallyelias87@gmail.com" },
]
maintainers = [
{ name = "lykmapipo", email = "lallyelias87@gmail.com" },
]
keywords = [
"lykmapipo",
"dictionary",
"dict",
"utilities",
"utils",
"helpers",
"transform",
"merge",
"omit",
"remove",
"normalize",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = []
[project.optional-dependencies]
dev = [
"black>=24.4.2",
"build>=1.2.1",
"codespell[toml]>=2.3.0",
"commitizen>=3.27.0",
"coverage[toml]>=7.5.4",
"isort>=5.13.2",
"mypy>=1.10.1",
"pip-audit>=2.7.3",
"pre-commit>=3.5.0",
"pytest>=8.2.2",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.1",
"pydocstyle>=6.3.0",
"ruff>=0.5.1",
"setuptools>=70.3.0",
"twine>=5.1.1",
]
[project.urls]
Homepage = "https://github.com/lykmapipo/dict2dict"
Documentation = "https://github.com/lykmapipo/dict2dict"
Changelog = "https://github.com/lykmapipo/dict2dict/blob/main/CHANGELOG.md"
Repository = "https://github.com/lykmapipo/dict2dict"
Issues = "https://github.com/lykmapipo/dict2dict/issues"
[tool.ruff]
fix = true
line-length = 88
src = ["src", "tests"]
target-version = "py38"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
unfixable = []
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"RUF", # Ruff-specific rules
"ANN", # flake8-annotations
"C", # flake8-comprehensions
"B", # flake8-bugbear
"I", # isort
"D", # pydocstyle
]
ignore = [
"E501", # line too long, handled by black
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
known-first-party = ["dict2dict", "tests"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.black]
target-version = ["py38"]
line-length = 88
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["dict2dict"]
lines_after_imports = 2
lines_between_sections = 1
lines_between_types = 1
ensure_newline_before_comments = true
force_sort_within_sections = true
src_paths = ["src", "tests"]
[tool.pydocstyle]
convention = "numpy"
[tool.mypy]
strict = true
files = "src,tests"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
[tool.coverage.run]
source = ["src", "tests"]
branch = true
parallel = true
context = "${CONTEXT}"
[tool.coverage.report]
precision = 2
skip_empty = true
ignore_errors = false
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug",
"raise AssertionError",
"raise NotImplementedError",
"AbstractMethodError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.4.1"
version_provider = "commitizen"
version_scheme = "semver"
major_version_zero = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_file = "CHANGELOG.md"
bump_message = "chore(release): bump $current_version to $new_version"
[tool.codespell]
skip = '.git,env*'
# Build system metadata.
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["dict2dict", "dict2dict.*"]
exclude = ["tests*"]
namespaces = false