forked from jason0x43/hacs-hubitat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
75 lines (67 loc) · 1.88 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
[project]
name = "hubitat"
version = "0.7.1"
description = "A Hubitat integration for Home Assistant"
authors = [
{name = "Jason Cheatham", email = "jason@jasoncheatham.com"},
]
dependencies = []
requires-python = ">=3.8,<4.0"
license = {text = "MIT"}
[project.urls]
homepage = ""
[project.optional-dependencies]
[tool.pdm.scripts]
init = {shell = "pdm install && pre-commit install"}
test = {shell = "pyright custom_components/hubitat && pytest tests"}
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pdm]
includes = []
[tool.pdm.dev-dependencies]
dev = [
"black>=21.12b0",
"flake8>=3.8.1",
"isort>=4.3.21",
"pre-commit<3.0.0,>=2.4.0",
"flake8-pyi>=20.5.0",
"../hubitatmaker.git",
"homeassistant==2021.12.0",
"pytest-asyncio>=0.16.0",
]
[build-system]
requires = ["pdm-pep517"]
build-backend = "pdm.pep517.api"
[tool.pyright]
include = ["custom_components/hubitat"]
exclude = ["**/__pycache__"]
extraPaths = ["__pypackages__/3.8/lib"]
stubPath = "."
reportDuplicateImport = true
reportMissingImports = true
reportOptionalCall = true
reportOptionalMemberAccess = true
reportOptionalSubscript = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedImport = true
reportUnusedVariable = true
[tool.isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
# splits long import on multiple lines indented by 4 spaces
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
indent = " "
# by default isort don't check module indexes
not_skip = "__init__.py"
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
sections = "FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "homeassistant,tests"
forced_separate = "tests"
combine_as_imports = true