Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
278 lines (241 loc) · 7.62 KB
/
Copy pathpyproject.toml
File metadata and controls
278 lines (241 loc) · 7.62 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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# SPDX-FileCopyrightText: 2025 icalendar-anonymizer contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# icalendar-anonymizer - Strip personal data from iCalendar files
# See https://packaging.python.org/en/latest/specifications/pyproject-toml/
#
[build-system]
requires = ["hatchling>=1.27.0", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "icalendar-anonymizer"
license = "AGPL-3.0-or-later"
keywords = [
"icalendar",
"calendar",
"anonymizer",
"privacy",
"ics",
"vcalendar",
]
authors = [
{ name = "Sashank Bhamidi", email = "hello@sashank.wiki" },
{ name = "Nicco Kunzmann", email = "niccokunzmann@rambler.ru" },
{ name = "Abe Hanoka", email = "abe@habet.dev" },
]
maintainers = [
{ name = "Sashank Bhamidi", email = "hello@sashank.wiki" },
{ name = "Nicco Kunzmann", email = "niccokunzmann@rambler.ru" },
{ name = "Abe Hanoka", email = "abe@habet.dev" },
]
dynamic = ["urls", "version"]
description = "Strip personal data from iCalendar files while preserving technical properties for bug reproduction"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
# see https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business :: Scheduling",
]
dependencies = [
"icalendar>=7.3.0",
]
[project.optional-dependencies]
cli = ["click>=8.3.1"]
web = [
"fastapi>=0.128.0",
"uvicorn>=0.38.0",
"python-multipart>=0.0.18",
"httpx>=0.28.1",
]
all = ["icalendar-anonymizer[cli,web]"]
# Local development dependencies
[dependency-groups]
cli = ["click>=8.3.1"]
dev = [
{include-group = "test"},
"ruff>=0.14.0",
"reuse>=6.2",
"commitizen>=4.10",
"pre-commit>=4.4",
"build>=1.3",
"twine>=6.2",
"towncrier>=26.9.0",
]
doc = [
"sphinx>=8.2",
"pydata-sphinx-theme>=0.16.0",
"sphinx-autobuild>=2025.8.25",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.0",
"sphinx-issues>=4.1.0",
"sphinx-notfound-page>=1.1.0",
"vale>=3.13.0.0",
]
test = [
{include-group = "cli"},
"pytest>=9.0",
"pytest-cov>=6.0",
"pytest-asyncio>=1.3.0",
"coverage>=7.11",
"hypothesis>=6.147",
"pytest-httpx>=0.30.0",
]
all = [
{include-group = "dev"},
{include-group = "doc"},
]
[project.scripts]
icalendar-anonymize = "icalendar_anonymizer.cli:main"
ican = "icalendar_anonymizer.cli:main"
[tool.hatch.build]
exclude = ["/.*", "/*.*", "/dist", "/build", "/htmlcov"]
[tool.hatch.build.targets.wheel]
packages = ["src/icalendar_anonymizer"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.hooks.vcs]
version-file = "src/icalendar_anonymizer/_version.py"
[tool.hatch.metadata.hooks.vcs.urls]
Homepage = "https://docs.icalendar-anonymizer.com"
Documentation = "https://docs.icalendar-anonymizer.com"
Repository = "https://github.com/pycalendar/icalendar-anonymizer"
Changelog = "https://docs.icalendar-anonymizer.com/stable/changelog.html"
Issues = "https://github.com/pycalendar/icalendar-anonymizer/issues"
Discussions = "https://github.com/pycalendar/icalendar-anonymizer/discussions"
source_archive = "https://github.com/pycalendar/icalendar-anonymizer/archive/{commit_hash}.zip"
[tool.hatch.metadata]
allow-direct-references = true
[tool.towncrier]
directory = "news/"
filename = "CHANGES.rst"
issue_format = "`#{issue} <https://github.com/pycalendar/icalendar-anonymizer/issues/{issue}>`_"
start_string = ".. towncrier release notes start\n"
title_format = "{version} ({project_date})"
underlines = ["-", "~", "`"]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Removals and deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "deps"
name = "Dependency changes"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal changes"
showcontent = true
[[tool.towncrier.type]]
directory = "chore"
name = "Other tasks"
showcontent = true
[[tool.towncrier.type]]
directory = "security"
name = "Security fixes"
showcontent = true
[tool.ruff]
target-version = "py311"
line-length = 100
unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"C401", # Unnecessary generator (rewrite as a set comprehension)
"C901", # {name} is too complex ({complexity} > {max_complexity})
"COM812", # Trailing comma missing
"CPY001", # Missing copyright notice at top of file (REUSE/SPDX headers cover this; see `reuse lint`)
"D1", # Missing docstring
"PLC0415", # Import should be at top-level (common pattern in pytest)
"D2", # docstrings stuffs
"D4", # docstrings stuffs
"EM10", # Exception string usage
"ERA001", # Found commented-out code
"FBT002", # Boolean default positional argument in function definition
"FIX", # TODO comments
"ISC001", # Implicitly concatenated string literals on one line (to avoid with formatter)
"PLR091", # Too many things (complexity, arguments, branches, etc...)
"PLR2004", # Magic value used in comparison
"S101", # Use of assert detected
"TD", # TODO comments
"TRY003", # Avoid specifying long messages outside the exception class
]
extend-safe-fixes = [
"PT006", # Wrong type passed to first argument of @pytest.mark.parametrize
]
[tool.ruff.lint.per-file-ignores]
"src/icalendar_anonymizer/tests/*" = [
"B011", # Do not assert False
"DTZ001", # datetime.datetime() called without a tzinfo argument
"E501", # Line too long
"N802", # Function name should be lowercase
"PT011", # pytest.raises too broad
"PT012", # pytest.raises() block should contain a single simple statement
"PT015", # Assertion always fails
"T201", # print found
"T203", # pprint found
"RUF001", # String contains ambiguous character
"SIM300", # Yoda condition
"SLF001", # Private member accessed
"N999", # module name
"PT027", # assertRaises
]
"docs/*" = [
"INP001", # implicit namespace package
]
"src/icalendar_anonymizer/webapp/vendored/*" = [
"ALL", # Vendored code - skip all linting
]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["src/icalendar_anonymizer/tests"]
norecursedirs = ["build", "dist", ".eggs"]
filterwarnings = ["ignore::DeprecationWarning"]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src"]
branch = true
omit = [
"src/icalendar_anonymizer/_version.py",
"src/icalendar_anonymizer/webapp/vendored/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.11", "3.12", "3.13"]