-
-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathpyproject.toml
More file actions
194 lines (170 loc) · 4.87 KB
/
Copy pathpyproject.toml
File metadata and controls
194 lines (170 loc) · 4.87 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
#
# Copyright (C) 2026 Chris Caron <lead2gold@gmail.com>
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions :
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
[build-system]
requires = ["setuptools>=69"]
build-backend = "setuptools.build_meta"
[project]
name = "apprise-api"
version = "1.4.1"
authors = [{ name = "Chris Caron", email = "lead2gold@gmail.com" }]
license = "MIT"
dependencies = [
"apprise == 1.11.0",
"django",
"gevent",
"gunicorn",
"requests",
"paho-mqtt >= 2.1.0",
"gntp",
"cryptography",
"django-prometheus",
"PGPy",
"smpplib",
"slixmpp >= 1.10.0",
# Provides Keybase & Threema Gateway E2E encryption support
"PyNaCl",
]
[project.urls]
Homepage = "https://appriseit.com/"
Source = "https://github.com/caronc/apprise-api"
Tracker = "https://github.com/caronc/apprise-api/issues"
Documentation = "https://appriseit.com/api/"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-django",
"ruff==0.15.8",
"djlint",
"jsbeautifier",
"openapi-spec-validator",
"tox",
"mock"
]
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["."]
include = ["apprise_api*"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings.pytest"
addopts = "--ignore=lib --ignore=lib64 --nomigrations --cov=apprise_api --cov-report=term-missing"
filterwarnings = ["once::Warning"]
testpaths = ["apprise_api"]
[tool.coverage.run]
branch = true
data_file = ".coverage-reports/.coverage"
parallel = false
concurrency = ["multiprocessing"]
include = ["apprise_api"]
omit = [
"*apps.py",
"*/migrations/*",
"*/core/settings/*",
"*/*/tests/*",
"lib/*",
"lib64/*",
"*urls.py",
"*/core/wsgi.py",
"gunicorn.conf.py",
"*/manage.py"
]
disable_warnings = ["no-data-collected"]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
fail_under = 75.0
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = [
"tests/data",
"bin",
"build",
"dist",
".eggs",
".tox",
".local",
".venv",
"venv",
]
[tool.ruff.format]
indent-style = "space"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"Q", # Quote handling ' -> "
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"T20", # flake8-print (catches stray `print`)
"RUF", # Ruff-native rules
]
ignore = [
"D100", # missing docstring in public module
"D104", # missing docstring in public package
"B008", # do not call `dict()` with keyword args
"E722", # bare except (Apprise uses it reasonably)
"E741", # Ambiguous variable name (e.g., l, O, I)
"W605", # Invalid escape sequence
"B026", # Star-arg play a big part of Apprise; must be accepted for now
# The following needs to be supported at some point and is of great value
"RUF012", # typing.ClassVar implimentation
"UP032", # This is a massive undertaking and requires a massive rewrite
# of test cases; this will take a while to fix, so turning off
# for now
]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.isort]
known-first-party = ["apprise_api"]
force-sort-within-sections = true
combine-as-imports = true
order-by-type = true
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["_"]
[tool.djlint]
# Define our profile
profile = "django"
# Match existing Python line length
max_line_length = 120
indent = 2
format_js = true
format_css = true
blank_line_after_tag = "load,extends,include"
extend_exclude = ".venv,venv,.tox,node_modules,build,dist,lib,lib64,static"
ignore = "H006,H021"
[tool.djlint.js]
indent_size = 2
preserve_newlines = true
[tool.djlint.css]
indent_size = 2