-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (115 loc) · 2.79 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (115 loc) · 2.79 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rejected"
version = "3.23.1"
description = "Rejected is a Python RabbitMQ Consumer Framework and Controller Daemon"
readme = "README.md"
requires-python = ">=3.11"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{name = "Gavin M. Roy", email = "gavinmroy@gmail.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: System :: Networking",
"Typing :: Typed",
]
keywords = ["amqp", "rabbitmq", "consumer", "messaging"]
dependencies = [
"pika>=1.2.0,<3",
"psutil",
"pydantic>=2,<3",
"pyyaml>=5.3.1,<7",
]
[project.optional-dependencies]
avro = ["fastavro>=1.7", "requests>=2.28"]
html = ["beautifulsoup4"]
msgpack = ["u-msgpack-python"]
prometheus = ["prometheus-client>=0.20"]
sentry = ["sentry-sdk>=2,<3"]
[project.scripts]
rejected = "rejected.controller:main"
[project.urls]
Homepage = "https://github.com/gmr/rejected"
Documentation = "https://rejected.readthedocs.io"
"Bug Tracker" = "https://github.com/gmr/rejected/issues"
"Source Code" = "https://github.com/gmr/rejected"
[dependency-groups]
dev = [
"build",
"coverage[toml]",
"pre-commit",
"ruff",
]
docs = [
"mkdocs>=1.5,<2",
"mkdocs-material>9.5,<10",
"mkdocstrings[python]",
]
[tool.coverage.run]
branch = true
command_line = "-m unittest discover -s tests -t . --buffer --verbose"
data_file = "build/.coverage"
source = ["rejected"]
[tool.coverage.report]
show_missing = true
exclude_also = [
"typing.TYPE_CHECKING",
]
[tool.coverage.html]
directory = "build/coverage"
[tool.coverage.xml]
output = "build/coverage.xml"
[tool.hatch.build.targets.wheel]
include = ["rejected"]
[tool.ruff]
line-length = 79
target-version = "py311"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = [
"BLE",
"C4",
"C90",
"E", "W",
"F",
"G",
"I",
"N",
"Q",
"S",
"ASYNC",
"B",
"DTZ",
"FURB",
"RUF",
"T20",
"UP",
]
ignore = [
"N818",
"RSE",
"UP040",
]
flake8-quotes = {inline-quotes = "single"}
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S"]
"rejected/consumer.py" = ["B904", "BLE001", "C901", "S301", "S506"]
"examples.py" = ["S311"]
"utils/**/*.py" = ["S311"]