-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (127 loc) · 3.91 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
[build-system]
requires = [
"hatchling >= 1.10.0",
"hatch-fancy-pypi-readme >= 22.5.0",
"incremental >= 22.10.0",
]
build-backend = "hatchling.build"
[project]
name = "adlermanager"
dynamic = [
"version",
"readme",
]
description = "A self-hostable status webpage that uses Prometheus alerts to create and maintain service status and incident tracking / customer information flow."
license = { text = "MIT License" }
# When updating this value, make sure our CI matrix includes a matching minimum version.
requires-python = ">=3.8.0"
authors = [
{ name = "Evilham", email = "cvs@evilham.com" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"Twisted[conch] >= 22.0.0",
"attrs >= 21.3.0",
"pyyaml >= 6.0.0",
"klein >= 22.0.0",
"jinja2 >= 3.1.0",
"markdown >= 3.5.0",
]
[project.scripts]
adlermanager = "adlermanager.__main__:run"
[project.urls]
Changelog = "https://farga.exo.cat/exo/prometheus-adlermanager/commits/branch/main"
Documentation = "https://farga.exo.cat/exo/prometheus-adlermanager/"
Homepage = "https://farga.exo.cat/exo/prometheus-adlermanager/"
Issues = "https://farga.exo.cat/exo/prometheus-adlermanager/issues"
Source = "https://farga.exo.cat/exo/prometheus-adlermanager/"
[tool.hatch.metadata]
# This is here to enable backward compatible extra dependencies
# that are defined using underscores.
allow-ambiguous-features = true
[tool.hatch.version]
source = "code"
path = "src/adlermanager/__init__.py"
search-paths = ["src"]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "README.md" },
]
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# Munge links of the form `NEWS <NEWS.rst>`_ to point at the appropriate
# location on GitHub so that they function when the long description is
# displayed on PyPI.
pattern = '`([^`]+)\s+<(?!https?://)([^>]+)>`_'
replacement = '`\1 <https://farga.eXO.cat/exo/adlermanager/src/branch/main/\2>`_'
ignore-case = true
[tool.hatch.build.targets.wheel]
packages = [
"src/adlermanager",
]
exclude = [
"*.pxi",
"*.pyx",
"build.bat",
]
[tool.hatch.build.targets.sdist]
# This dictates what goes into a sdist tarball.
# As a release tarball, we want to include:
# - All of the library code.
# - All the useful documentation (but not the super historic stuff)
# - All of the test files, so that the tests can be run on an installed copy.
# We do not want to include:
# - Release management files (e.g. topfiles)
# - Things only useful when running from a source checkout
include = [
# Documentation
# "/docs",
# Library code
"/src",
# "/CONTRIBUTING.md",
# "/INSTALL.rst",
# "/NEWS.rst",
"/README.md",
# "/code_of_conduct.md",
# Test-running utilities for downstream packagers
# "/.coveragerc",
"/mypy.ini",
# "/tox.ini",
]
[tool.black]
target-version = ['py39']
[tool.isort]
profile = "black"
sections = "FUTURE,STDLIB,ZOPE,OPENSSL,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
no_lines_before = "LOCALFOLDER"
known_first_party = "adlermanager"
known_zope = "zope"
known_openssl = "OpenSSL"
combine_as_imports = true
#skip = "src/twisted/logger/__init__.py,src/twisted/internet/reactor.py"
[tool.mypy]
namespace_packages = true
plugins = ["mypy_zope:plugin"]
#TODO: progress so we can enable this
#strict=true
check_untyped_defs=true
disallow_untyped_defs=true
warn_redundant_casts=true
warn_unused_configs= true
warn_unused_ignores = false
warn_no_return=true
warn_return_any=true
warn_unreachable=true
enable_error_code = ["unused-awaitable"]
[tool.pyright]
include = ["src"]
reportIncompatibleMethodOverride = false