-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (121 loc) · 3.78 KB
/
pyproject.toml
File metadata and controls
132 lines (121 loc) · 3.78 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
[project]
name = "python-ntfy"
version = "0.11.1"
description = "An easy-to-use library for the ntfy notification service."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = ["requests>=2.31.0"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Communications",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["ntfy", "notifications", "push", "http", "api"]
authors = [{ name = "Matthew Cane", email = "matthew.cane0@gmail.com" }]
[project.urls]
Homepage = "https://github.com/matthewcane/python-ntfy"
Documentation = "https://matthewcane.github.io/python-ntfy/"
Repository = "https://github.com/matthewcane/python-ntfy"
Issues = "https://github.com/matthewcane/python-ntfy/issues"
Changelog = "https://github.com/matthewcane/python-ntfy/releases"
[build-system]
requires = ["uv_build<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "python_ntfy"
module-root = ""
[dependency-groups]
dev = [
"mkdocstrings[python]>=0.26.2",
"mypy >=1.12.0",
"pytest >=7.4.1",
"python-dotenv >=1.0.0",
"pytest-asyncio >=0.21.1",
"pytest-codecov >=0.5.1",
"ruff >=0.7",
"mkdocs-material >=9.5.41",
"mkdocstrings-python >=1.12.1",
"types-pygments >=2.18.0.20240506",
"types-colorama >=0.4.15.20240311",
"types-requests >=2.32.0.20241016",
"types-setuptools >=75.2.0.20241018",
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint]
select = [
"E", # PycodeStyle errors
"W", # PycodeStyle warnings
"F", # PyFlakes
"I", # Isort
"N", # pep8-naming
"D", # Pydocstyle
"UP", # PyUpgrade
"ANN", # Flake8-annotations
"S", # Flake8-bandit
"BLE", # Flake8-blind-except
"B", # Flake8-bugbear
"A", # Flake8-builtins
"C4", # Flake8-comprehensions
"T10", # Flake8-debugger
"EM", # Flake8-errmessages
"Q", # Flake8-quotes
"RET", # Flake8-return
"TRY", # Triceratops
"FURB", # Refurb
"RUF", # Ruff
"PERF", # Perflint
]
ignore = [
"E501", # Line too long
"D103", # Missing docstring in public function
"D417", # Undocumented parameters
"D104", # First line of docstring should be in imperative moof
"D100", # Missing docstring in public module
"ANN001", # Missing type annotation for function argument
"S101", # Use of assert detected
"TRY003", # Use of vanilla exception messages
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--cov=python_ntfy",
"--cov-fail-under=95",
"--cov-report=term-missing",
]
[tool.mypy]
python_version = "3.12"
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
no_implicit_optional = true
strict_equality = true
pretty = true
# Default expectations for the codebase; public modules may override to be stricter.
disallow_incomplete_defs = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = ["python_ntfy.client", "python_ntfy.__init__"]
disallow_incomplete_defs = true
disallow_untyped_defs = true
[tool.ty.environment]
root = ["."]
python = "./.venv"