-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
87 lines (75 loc) · 2.42 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
[tool.poetry]
name = "bugzilla2fedmsg-schema"
version = "1.1.0"
description = "Fedora Messaging schemas for bugzilla2fedmsg"
authors = ["Fedora Infrastructure <infrastructure@lists.fedoraproject.org>"]
license = "LGPL-2.1-or-later"
readme = "README.md"
homepage = "https://github.com/fedora-infra/bugzilla2fedmsg-schema"
repository = "https://github.com/fedora-infra/bugzilla2fedmsg-schema.git"
packages = [{include = "bugzilla2fedmsg_schema"}]
keywords = ["fedora-messaging"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Topic :: Communications",
"Topic :: Software Development :: Libraries :: Python Modules",
]
include = [
{ path = "tox.ini", format = "sdist" },
{ path = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.9.0"
fedora-messaging = "^3.2.0"
[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 || ^9.0.0 || ^10.0.0"
[tool.poetry.plugins."fedora.messages"]
"bugzilla2fedmsg.messageV1bz4" = "bugzilla2fedmsg_schema.schema:MessageV1BZ4"
"bugzilla2fedmsg.messageV1" = "bugzilla2fedmsg_schema.schema:MessageV1"
[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.per-file-ignores]
"tests/*" = ["S101", "E501"]
"bugzilla2fedmsg_schema/__init__.py" = ["F401"]
[tool.coverage.run]
# Track what conditional branches are covered.
branch = true
source = [
"bugzilla2fedmsg_schema",
]
[tool.coverage.report]
# Fail if the coverage is not 85%
fail_under = 85
# Display results with up 1/100th of a percent accuracy.
precision = 2
exclude_lines = [
"pragma: no cover",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
omit = [
"tests/*",
]