-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
116 lines (104 loc) · 3.18 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
[tool.poetry]
name = "aioswitcher"
version = "5.1.3-dev"
description = "Switcher Python Integration."
license = "Apache-2.0"
authors = [ "Tomer Figenblat <[email protected]>" ]
maintainers = [ "Shay Levy" ]
readme = "README.md"
homepage = "https://pypi.org/project/aioswitcher/"
repository = "https://github.com/tomerfi/aioswitcher"
documentation = "https://aioswitcher.tomfi.info"
keywords = [ "home", "automation", "switcher", "smart" ]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
include = [ ]
exclude = [ ]
[tool.poetry.dependencies]
python = "^3.12.0"
pycryptodome = ">=3.18.0"
aiohttp = ">=3.10.3"
[tool.poetry.group.dev.dependencies]
assertpy = "^1.1"
black = "^24.10.0"
flake8 = "^7.1.1"
flake8-docstrings = "^1.7.0"
Flake8-pyproject = "^1.2.3"
isort = "^5.13.2"
mypy = "^1.14.0"
poethepoet = "^0.31.1"
pytest = "^8.3.4"
pytest-asyncio = "^0.25.0"
pytest-cov = "^6.0.0"
pytest-resource-path = "^1.3.0"
pytest-mockservers = "^0.6.0"
pytest-sugar = "^1.0.0"
time-machine = "^2.16.0"
yamllint = "^1.35.1"
freezegun = ">=1.5.1"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-git-revision-date-plugin = "^0.3.2"
mkdocs-material = "^9.5.49"
mkdocstrings = "^0.27.0"
mkdocstrings-python = "^1.12.2"
poethepoet = "^0.31.1"
[tool.poetry.scripts]
control_device = "scripts.control_device:main"
discover_devices = "scripts.discover_devices:main"
get_device_login_key = "scripts.get_device_login_key:main"
validate_token = "scripts.validate_token:main"
[tool.poe.tasks]
test = "poetry run pytest -v"
test_cov = "poetry run pytest -v --cov --cov-report=term"
test_rep = "poetry run pytest -v --cov --cov-report=xml:coverage.xml --junit-xml junit.xml"
test_pub = "poetry publish --build --repository testpypi"
lint = [ "black", "flake8", "isort", "mypy", "yamllint" ]
black = "poetry run black --check src/ docs/ scripts/"
black_fix = "poetry run black src/ docs/ scripts/"
flake8 = "poetry run flake8 src/ tests/ docs/ scripts/"
isort = "poetry run isort --check-only src/ tests/ docs/ scripts/"
isort_fix = "poetry run isort src/ tests/ docs/ scripts/"
mypy = "poetry run mypy src/ scripts/"
yamllint = "poetry run yamllint --format colored --strict ."
docs_build = "poetry run mkdocs build --strict"
docs_serve = "poetry run mkdocs serve"
[tool.pytest.ini_options]
asyncio_mode = "strict"
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
strict_concatenate = true
strict_equality = true
strict = true
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 88
per-file-ignores = "tests/*.py:E501,D103"
count = true
statistics = true
[tool.coverage.run]
source = [ "aioswitcher" ]
[tool.coverage.report]
fail_under = 85
precision = 2
skip_covered = true
[build-system]
requires = [ "poetry-core>=1.2.0" ]
build-backend = "poetry.core.masonry.api"