forked from python-ring-doorbell/python-ring-doorbell
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
130 lines (117 loc) · 3.33 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
[tool.poetry]
name = "ring-doorbell"
version = "0.8.11"
description = "A Python library to communicate with Ring Door Bell (https://ring.com/)"
authors = ["Marcelo Moreira de Mello <[email protected]>"]
license = "LGPLv3+"
readme = "README.rst"
homepage = "https://github.com/tchellomello/python-ring-doorbell"
repository = "https://github.com/tchellomello/python-ring-doorbell"
documentation = "http://python-ring-doorbell.readthedocs.io/"
keywords = [
"ring",
"door bell",
"camera",
"home automation",
]
classifiers = [
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules"
]
packages = [
{ include = "ring_doorbell" },
{ include = "tests", format = "sdist" },
]
include = [
"LICENSE",
"CONTRIBUTING.rst",
"CHANGELOG.rst",
"scripts/ringcli.py"
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/tchellomello/python-ring-doorbell/issues"
[tool.poetry.scripts]
ring-doorbell = "ring_doorbell.cli:cli"
[tool.poetry.dependencies]
python = "^3.8"
requests = ">=2.0.0"
requests-oauthlib = ">=1.3.0,<2"
oauthlib = ">=3.0.0,<4"
pytz = ">=2022.0"
asyncclick = ">=8"
anyio = "*" # see https://github.com/python-trio/asyncclick/issues/18
sphinx = {version = "<7.2.6", optional = true}
sphinx-rtd-theme = {version = "^1.3.0", optional = true}
sphinx-github-changelog = {version = "^1.2.1", optional = true}
firebase-messaging = {version = "^0.2.1", optional = true}
[tool.poetry.group.dev.dependencies]
mock = "*"
pre-commit = "*"
pylint = "*"
pytest = "*"
pytest-cov = "*"
requests-mock = "*"
tox = "*"
pytest-asyncio = "*"
pytest-mock = "*"
pytest-socket = "^0.6.0"
ruff = "0.3.5"
types-requests-oauthlib = "1.3"
types-pytz = "^2024.1.0.20240203"
types-click = "^7.1.8"
[tool.poetry.extras]
docs = ["sphinx", "sphinx-rtd-theme", "sphinx-github-changelog"]
listen = ["firebase-messaging"]
[tool.pytest.ini_options]
testpaths = [
"tests"
]
norecursedirs = ".git"
asyncio_mode = "auto"
addopts = "--disable-socket --allow-unix-socket"
filterwarnings = [
"ignore:.*google._upb._message.MessageMapContainer uses PyType_Spec.*:DeprecationWarning",
"ignore:.*google._upb._message.ScalarMapContainer uses PyType_Spec.*:DeprecationWarning",
"ignore:.*datetime.datetime.utcnow.*:DeprecationWarning"
]
[tool.coverage.run]
source = ["ring_doorbell"]
branch = true
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
ignore = [
"ANN101", # Self... explanatory
"ANN102", # cls... just as useless
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"COM812", # Conflicts with other rules
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"ISC001", # Conflicts with other rules
"PLR2004", # Just annoying, not really useful
]
select = ["ALL"]
exclude = [
"ring_doorbell/cli.py",
"test.py"
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
exclude = [
'/scripts/', # TOML literal string (single-quotes, no escaping necessary)
'tests/.*',
]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"ring_doorbell.cli"
]
disallow_untyped_defs = false
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"