forked from fedora-infra/webhook-to-fedora-messaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (123 loc) · 3.49 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
[tool.poetry]
name = "webhook-to-fedora-messaging"
version = "0.1.0"
description = "Webhook to Fedora Messaging"
license = "AGPL-3.0-or-later"
authors = [
"Fedora Infrastructure <[email protected]>"
]
keywords = [
"fedora",
"amqp"
]
readme = "README.md"
repository = "http://github.com/fedora-infra/webhook-to-fedora-messaging"
homepage = "http://github.com/fedora-infra/webhook-to-fedora-messaging"
documentation = "https://webhook-to-fedora-messaging.readthedocs.io"
include = [
{ path = "tox.ini", format = "sdist" },
{ path = "tests", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "*.example", format = "sdist" },
]
classifiers = [
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: POSIX :: Linux",
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Information Technology",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Flask",
"Topic :: System :: Networking",
"Topic :: System :: Monitoring",
]
[tool.poetry.dependencies]
python = "^3.11"
sqlalchemy-helpers = ">=0.12.1"
flask = "^3.0.3"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.0.0"
pytest-cov = ">=4.0.0"
black = ">=23.10.0"
ruff = ">=0.1.1"
coverage = {extras = ["toml"], version = ">=7.0.0"}
diff-cover = ">=8.0.0"
sphinx = ">=4.0"
myst-parser = ">=0.16"
liccheck = ">=0.6"
pre-commit = ">=2.13"
sphinxcontrib-napoleon = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "E501"]
"webhook_to_fedora_messaging/__init__.py" = ["F401"]
"changelog.d/get-authors.py" = ["S602", "S603", "S607"]
[tool.coverage.run]
branch = true
source = ["webhook_to_fedora_messaging"]
[tool.coverage.paths]
source = ["webhook_to_fedora_messaging"]
[tool.coverage.report]
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"\\.\\.\\.",
]
omit = [
"webhook_to_fedora_messaging/__init__.py",
"webhook_to_fedora_messaging/migrations/env.py",
"tests/*",
]
[tool.towncrier]
package = "webhook-to-fedora-messaging"
filename = "docs/release_notes.md"
directory = "changelog.d"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "changelog.d/_template.md"
title_format = "## Version [{version}](http://github.com/fedora-infra/webhook-to-fedora-messaging/tree/{version}) - {project_date}"
issue_format = "{issue}"
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true