forked from signalkraft/mypyllant-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
58 lines (52 loc) · 1.05 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
[tool.coverage.run]
source = ["custom_components"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplemented()",
"if __name__ == '__main__':",
"main()",
]
show_missing = true
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [".git"]
addopts = """
--strict-markers
--cov=custom_components"""
asyncio_mode = "auto"
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.10"
pretty = true
follow_imports = "silent"
ignore_missing_imports = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
[tool.flake8]
max-line-length = 88
# E501: line too long
# W503: Line break occurred before a binary operator
# E203: Whitespace before ':'
# D202 No blank lines allowed after function docstring
# W504 line break after binary operator
ignore = ["E501", "W503", "E203", "D202", "W504"]
[tool.bandit]
tests = [
"B108",
"B306",
"B307",
"B313",
"B314",
"B315",
"B316",
"B317",
"B318",
"B319",
"B320",
"B325",
"B602",
"B604",
]