-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
144 lines (127 loc) · 3.16 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
143
144
[project]
name = "firebase-messaging"
version = "0.4.4"
description = "FCM/GCM push notification client"
authors = [{ name = "sdb9696", email = "[email protected]" }]
license = { text="MIT" }
readme = "README.rst"
requires-python = ">=3.9.0"
dependencies = [
"protobuf>=4.24.3,<6",
"http-ece~=1.1.0",
"cryptography>=2.5",
"aiohttp>=3.9.3",
]
keywords = [
"Firebase",
"Firebase Cloud Messaging",
"Google Cloud Messaging",
]
classifiers = [
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[project.urls]
Homepage = "https://github.com/sdb9696/firebase-messaging"
Repository = "https://github.com/sdb9696/firebase-messaging"
Documentation = "http://firebase-messaging.readthedocs.io/"
"Bug Tracker" = "https://github.com/sdb9696/firebase-messaging/issues"
[project.optional-dependencies]
docs = ["sphinx==7.1.2", "sphinx-rtd-theme~=1.3", "sphinx-autodoc-typehints~=1.24", "myst-parser"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"/firebase_messaging",
"/tests",
"/docs",
"/CHANGELOG.md",
]
[tool.uv]
dev-dependencies = [
"pre-commit",
"pytest",
"pytest-mock",
"pytest-asyncio",
"pytest-cov",
"async-timeout>=3.0.0",
"pytest-socket~=0.7.0",
"aioresponses~=0.7.6",
"types-protobuf>=4.24",
"mypy~=1.0",
"ruff>=0.6.8",
]
[tool.pytest.ini_options]
testpaths = "tests"
norecursedirs = ".git"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "--disable-socket --allow-unix-socket"
[tool.coverage.run]
omit = [
"firebase_messaging/proto/*",
"firebase_messaging/decrypt.py*"
]
[tool.ruff]
target-version = "py39"
exclude = [
"firebase_messaging/proto/*"
]
lint.select = [
"E", # pycodestyle
# "D", # pydocstyle
"F", # pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"S", # bandit
]
lint.ignore = [
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"F401",
"S101", # allow asserts
"E501", # ignore line-too-longs
]
"docs/source/conf.py" = [
"D100",
"D103",
]
[tool.mypy]
# exclude pattern inside triple quotes should be synced to .pre-commit-config.yaml
exclude = '''(?x)(
^docs/.*|
^tests/.*|
^firebase_messaging/proto/.*py$
)'''
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"firebase_messaging.proto.*"
]
disallow_untyped_defs = false
[tool.doc8]
paths = ["docs"]
ignore = ["D001"]
ignore-path = ["docs/build"]