-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
86 lines (70 loc) · 2.26 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
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "gotify"
version = "0.6.0"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
authors = [{ name = "d-k-bo", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Home Automation",
"Topic :: Utilities",
]
dependencies = ["httpx >= 0.22.0"]
dynamic = ["description"]
[project.optional-dependencies]
stream = ["websockets >= 10.3"]
test = [
"pytest >= 7.1.2",
"pytest-cov >= 3.0.0",
"pytest-asyncio >= 0.18.3",
"typeguard >= 4.1.5",
]
[project.urls]
Source = "https://github.com/d-k-bo/python-gotify"
[tool]
[tool.black]
[tool.isort]
profile = "black"
[tool.mypy]
show_error_codes = true
warn_unused_ignores = true
files = ["gotify/", "tests/"]
[tool.pytest]
[tool.pytest.ini_options]
addopts = "--tb=short"
testpaths = "tests"
asyncio_mode = "auto"
[tool.coverage]
[tool.coverage.run]
source = ["gotify"]
[tool.coverage.report]
show_missing = true
[tool.ruff]
# ceil(1.1 * 88) makes `E501` equivalent to `B950`
# https://github.com/astral-sh/ruff/issues/389#issuecomment-1528922079
line-length = 97
select = ["B", "D", "E", "F", "ANN"]
ignore = [
"E203", # whitespace before ‘,’, ‘;’, or ‘:’ (incompatible with PEP8 and black)
"E501", # line too long (to strict, use B950 instead)
"ANN10", # Missing type annotation for self/cls
"D105", # D105 Missing docstring in magic method
]
[tool.ruff.per-file-ignores]
"gotify/response_types.py" = ["D101"] # Missing docstring in public class
"tests/*" = ["D", "ANN"]
"noxfile.py" = ["D", "ANN"]
[tool.ruff.pydocstyle]
convention = "google"