-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (93 loc) · 2.43 KB
/
pyproject.toml
File metadata and controls
109 lines (93 loc) · 2.43 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
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[project]
name = "pyadtpulse"
version = "1.2.14"
description = "Python interface for ADT Pulse security systems"
authors = [{ name = "Ryan Snodgrass" }]
maintainers = [{ name = "Elliot Worth", email = "elliotworth@protonmail.com" }]
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"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",
]
requires-python = ">=3.10"
dependencies = [
"aiohttp>=3.12.14",
"aiohttp-fast-zlib[zlib-ng]>=0.3.0",
"lxml>=6.0.0",
"typeguard>=4.4.4",
]
[dependency-groups]
bandit = ["bandit[sarif,toml]>=1.8.6"]
dev = ["pre-commit>=4.2.0", "ruff>=0.12.3"]
testing = [
"aioresponses>=0.7.8",
"freezegun>=1.5.2",
"pytest>=8.4.1",
"pytest-asyncio>=1.0.0",
"pytest-isolate>=0.0.12",
"pytest-mock>=3.14.1",
]
[tool.bandit]
exclude_dirs = ["tests", ".venv"]
exclude = ["example-client.py"]
[tool.uv]
required-version = ">=0.8.0"
default-groups = ["dev", "testing"]
[tool.uv.build-backend]
module-name = "pyadtpulse"
module-root = ""
[tool.ruff]
line-length = 88 # Matches black
show-fixes = true
target-version = "py310"
exclude = ["example-client.py"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
line-ending = "auto"
[tool.ruff.lint]
ignore = [
"D107", #missing-docstring-in-init
"PLR2004", #Magic Values
"D203", #no-blank-line-before-class
"D212", #multi-line-summary-first-line
]
select = [
"I", # isort
"F", # plake8-bugbear
"E", # pycoyflakes
"W",
"D", # pydocstyle
"PL", # pylint
"RUF", # ruff
"UP", # pyupgrade
]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.isort]
length-sort = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Failed to get GPU count using pynvml:RuntimeWarning:pytest_isolate.plugin",
]