| 1 |
[build-system] |
| 2 |
requires = [ |
| 3 |
"setuptools >= 40.9.0", |
| 4 |
"wheel", |
| 5 |
] |
| 6 |
build-backend = "setuptools.build_meta" |
| 7 |
|
| 8 |
[tool.black] |
| 9 |
target-version = ["py37", "py38"] |
| 10 |
exclude = 'generated' |
| 11 |
|
| 12 |
[tool.isort] |
| 13 |
|
| 14 |
profile = "black" |
| 15 |
|
| 16 |
force_sort_within_sections = true |
| 17 |
known_first_party = [ |
| 18 |
"homeassistant", |
| 19 |
"tests", |
| 20 |
] |
| 21 |
forced_separate = [ |
| 22 |
"tests", |
| 23 |
] |
| 24 |
combine_as_imports = true |
| 25 |
|
| 26 |
[tool.pylint.MASTER] |
| 27 |
ignore = [ |
| 28 |
"tests", |
| 29 |
] |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
load-plugins = [ |
| 35 |
"pylint_strict_informational", |
| 36 |
] |
| 37 |
persistent = false |
| 38 |
extension-pkg-whitelist = [ |
| 39 |
"ciso8601", |
| 40 |
"cv2", |
| 41 |
] |
| 42 |
|
| 43 |
[tool.pylint.BASIC] |
| 44 |
good-names = [ |
| 45 |
"_", |
| 46 |
"ev", |
| 47 |
"ex", |
| 48 |
"fp", |
| 49 |
"i", |
| 50 |
"id", |
| 51 |
"j", |
| 52 |
"k", |
| 53 |
"Run", |
| 54 |
"T", |
| 55 |
] |
| 56 |
|
| 57 |
[tool.pylint."MESSAGES CONTROL"] |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
disable = [ |
| 72 |
"format", |
| 73 |
"abstract-class-little-used", |
| 74 |
"abstract-method", |
| 75 |
"cyclic-import", |
| 76 |
"duplicate-code", |
| 77 |
"inconsistent-return-statements", |
| 78 |
"locally-disabled", |
| 79 |
"not-context-manager", |
| 80 |
"too-few-public-methods", |
| 81 |
"too-many-ancestors", |
| 82 |
"too-many-arguments", |
| 83 |
"too-many-branches", |
| 84 |
"too-many-instance-attributes", |
| 85 |
"too-many-lines", |
| 86 |
"too-many-locals", |
| 87 |
"too-many-public-methods", |
| 88 |
"too-many-return-statements", |
| 89 |
"too-many-statements", |
| 90 |
"too-many-boolean-expressions", |
| 91 |
"unused-argument", |
| 92 |
"wrong-import-order", |
| 93 |
] |
| 94 |
enable = [ |
| 95 |
|
| 96 |
"use-symbolic-message-instead", |
| 97 |
] |
| 98 |
|
| 99 |
[tool.pylint.REPORTS] |
| 100 |
score = false |
| 101 |
|
| 102 |
[tool.pylint.TYPECHECK] |
| 103 |
ignored-classes = [ |
| 104 |
"_CountingAttr", |
| 105 |
] |
| 106 |
|
| 107 |
[tool.pylint.FORMAT] |
| 108 |
expected-line-ending-format = "LF" |
| 109 |
|
| 110 |
[tool.pylint.EXCEPTIONS] |
| 111 |
overgeneral-exceptions = [ |
| 112 |
"BaseException", |
| 113 |
"Exception", |
| 114 |
"HomeAssistantError", |
| 115 |
] |