-
Notifications
You must be signed in to change notification settings - Fork 29
/
pyproject.toml
143 lines (128 loc) · 4.12 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pyatmo"
description = "Simple API to access Netatmo weather station data from any Python 3 script. Designed for Home Assistant (but not only)"
dynamic = ["version"]
readme = "README.md"
authors = [{ name = "Hugo Dupras", email = "[email protected]" }]
maintainers = [{ name = "Tobias Sauerwein", email = "[email protected]" }]
requires-python = ">=3.11,<3.13"
dependencies = [
"aiohttp>=3.7.4,<4.0.0",
"oauthlib~=3.1",
"requests~=2.24",
"requests-oauthlib>=1.3,<3.0",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Home Automation",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[project.urls]
Homepage = "https://github.com/jabesq-org/pyatmo"
Repository = "https://github.com/jabesq-org/pyatmo.git"
Issues = "https://github.com/jabesq-org/pyatmo/issues"
Changelog = "https://github.com/jabesq-org/pyatmo/blob/development/CHANGELOG.md"
[tool.uv]
dev-dependencies = [
"black==24.8.0",
"pre-commit==3.8.0",
"ruff==0.6.4",
"codespell==2.3.0",
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
"pytest-cov==5.0.0",
"docutils==0.21.2",
"time-machine==2.15.0",
"mypy==1.11.2",
"pytest-mock==3.14.0",
"requests-mock==1.12.1",
"tox==4.18.1",
"twine==5.1.1",
]
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.pytest.ini_options]
minversion = "8.0"
asyncio_mode = "auto"
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
fix = true
line-length = 88
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D406", # Section name should end with a newline
"D407", # Section name underlining
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
"N818", # Exception should be named with an Error suffix
# False positives https://github.com/astral-sh/ruff/issues/5386
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"UP006", # keep type annotation style as is
"UP007", # keep type annotation style as is
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
# need cleanup
"FBT001",
"FBT002",
"FBT003",
"DTZ006",
"DTZ005",
"PGH003",
"ANN401",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pytz".msg = "use zoneinfo instead"
[tool.ruff.lint.isort]
force-sort-within-sections = true
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
# Allow for main entry & scripts to write to stdout
"src/pyatmo/__main__.py" = ["T201"]
"src/pyatmo/modules/module.py" = ["PGH003"]
"src/pyatmo/auth.py" = ["ASYNC109"]
# Exceptions for tests
"tests/*" = [
"D10",
"S105",
"S101",
"ANN201",
"ANN001",
"N802",
"ANN202",
"PTH123",
"ASYNC230",
"PT012",
"DTZ001",
"ANN003",
"ANN002",
"A001",
"ARG001",
"ANN204",
]
[tool.ruff.lint.mccabe]
max-complexity = 25