forked from kdeyev/eyeonwater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (73 loc) · 1.91 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
[tool.poetry]
name = "eyeonwater"
version = "2.5.7"
description = "EyeOnWater HomeAssistant Integration."
authors = []
license = "MIT"
readme = "README.md"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.9"
aiohttp = "^3.8.5"
tenacity = "^8.2.3"
pytz = "^2023.3"
python-dateutil = "^2.8.2"
pydantic = "<2"
pyonwater = "0.3.14"
[tool.poetry.group.dev.dependencies]
types-pytz = "^2023.3.0.1"
[tool.black]
target-version = ["py39", "py310"]
exclude = 'generated'
[tool.isort]
profile = "black"
force_sort_within_sections = true
known_first_party = [
"homeassistant",
]
combine_as_imports = true
[tool.ruff]
select = [
"ALL",
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"C", # flake8-comprehensions
"B", # flake8-bugbear
"A", # prevent using keywords that clobber python builtins
"ISC", # implicit string concatenation
"UP", # alert you when better syntax is available in your python version
"RUF", # the ruff developer's own rules
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"YTT", # flake8-2020
"ANN", # flake8-annotations
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10
]
fixable = [
"ALL",
"F401", # Remove unused imports.
"NPY001", # Fix numpy types, which are removed in 1.24.
"RUF100", # Remove unused noqa comments.
]
[tool.ruff.per-file-ignores]
"tests/*.py" = ["D1"]
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
show_error_codes = true
implicit_reexport = true