-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
61 lines (56 loc) · 1.64 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
[tool.coverage.run]
source = ["custom_components"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplemented()",
"if __name__ == '__main__':",
"main()",
]
fail_under = 95
show_missing = true
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
^/foo.py # exclude a file named foo.py in the root of the project
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
)
'''
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [".git"]
addopts = ["--strict-markers", "--cov=custom_components"]
asyncio_mode = "auto"
[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
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
indent = " "
# will group `import x` and `from x import` of the same module.
default_section = "THIRDPARTY"
known_first_party = ["custom_components", "tests"]
forced_separate = "tests"
force_sort_within_sections = true
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
combine_as_imports = true
[tool.mypy]
follow_imports = "silent"
python_version = 3.9
ignore_errors = true
ignore_missing_imports = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true