-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
85 lines (75 loc) · 2.22 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
[tool.poetry]
name = "pywattbox"
version = "0.7.2"
description = "A python wrapper for WattBox APIs."
license = "MIT"
readme = "README.md"
authors = ["Erik Seglem <[email protected]>"]
repository = "https://github.com/eseglem/pywattbox"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Home Automation",
]
[tool.poetry.dependencies]
python = "^3.8"
httpx = { version = ">=0.23.0", optional = true }
beautifulsoup4 = { version = ">=4.11.0", optional = true }
lxml = { version = ">=4.9.0", optional = true }
h11 = { version = ">=0.14.0", optional = true }
scrapli = { version = ">=2023.7.30", optional = true }
ssh2-python = { version = ">=0.23.0,<2.0.0", optional = true }
asyncssh = { version = ">=2.2.1,<3.0.0", optional = true }
[tool.poetry.extras]
ip = ["scrapli", "asyncssh"]
http = ["httpx", "beautifulsoup4", "lxml", "h11"]
ssh2 = ["scrapli", "ssh2-python"]
[tool.poetry.group.dev.dependencies]
black = "^23.11.0"
ruff = "^0.1.6"
mypy = "^1.7.0"
pre-commit = "^3.5.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py38"]
[tool.isort]
profile = "black"
[tool.ruff]
target-version = "py38"
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"YTT", # flake8-2020
"C4", # flake8-comprehensions
"B", # flake8-bugbear
]
fix = true
ignore = [
"E501", # Line too long. Handled by black.
]
[tool.ruff.isort]
combine-as-imports = true
[tool.mypy]
python_version = 3.8
show_error_codes = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true