Debian Codegraph @

pyproject.toml

raw symbols SCIP
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 # https://github.com/PyCQA/isort/wiki/isort-Settings
14 profile = "black"
15 # will group `import x` and `from x import` of the same module.
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 # Use a conservative default here; 2 should speed up most setups and not hurt
31 # any too bad. Override on command line as appropriate.
32 # Disabled for now: https://github.com/PyCQA/pylint/issues/3584
33 #jobs = 2
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 # Reasons disabled:
59 # format - handled by black
60 # locally-disabled - it spams too much
61 # duplicate-code - unavoidable
62 # cyclic-import - doesn't test if both import on load
63 # abstract-class-little-used - prevents from setting right foundation
64 # unused-argument - generic callbacks and setup methods create a lot of warnings
65 # too-many-* - are not enforced for the sake of readability
66 # too-few-* - same as too-many-*
67 # abstract-method - with intro of async there are always methods missing
68 # inconsistent-return-statements - doesn't handle raise
69 # too-many-ancestors - it's too strict.
70 # wrong-import-order - isort guards this
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 #"useless-suppression", # temporarily every now and then to clean them up
96 "use-symbolic-message-instead",
97 ]
98
99 [tool.pylint.REPORTS]
100 score = false
101
102 [tool.pylint.TYPECHECK]
103 ignored-classes = [
104 "_CountingAttr", # for attrs
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 ]