-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.flake8
49 lines (38 loc) · 1.46 KB
/
.flake8
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
; flake8 config cannot be merged within setup.cfg due to setuptools being
; bugged.
; See: https://github.com/pypa/pip/issues/5182
[flake8]
; directory which should not be checked
exclude = .git,__pycache__,old,build,dist,.tox,venv,.venv
; Define the max line lengths
max-line-length = 79
max-doc-length = 72
; Ignore E501: max line to line, in favor of B950 which allow exceptional
; 10% overhead
; Ignore E203: whitespace before ':' (incompatible with black)
; Ignore C101: don't require coding magic (incompatible with ruff)
ignore = W503, D400, D205, E501, E203, C101
; ignore missing docs for filters
per-file-ignores =
; enable some flake8 plugins
enable-extensions = "G"
; mimics flake8-colors
format = %(cyan)s%(path)s%(reset)s:%(yellow)s%(bold)s%(row)d%(reset)s:%(green)s%(bold)s%(col)d%(reset)s: %(red)s%(bold)s%(code)s%(reset)s %(text)s
; configure pep8-naming
classmethod-decorators = classmethod,classproperty
ignore-names = setUp,tearDown,setUpClass,tearDownClass,setUpTestData,failureException,longMessage,maxDiff,addSuccess,addFailure,addError,printErrorList,addTest
; configure flake8-quote
inline-quotes = "
multiline-quotes = """
docstring-quotes = """
avoid-escape = False
; configure flake8-coding
accept-encodings = utf-8
; configure flake8-docstring
docstring-convention = pep257
; configure flake8-import-order
import-order-style = google
application-import-names = custom_components.energy_meter, tests
; configure darglint
strictness=short
docstring_style=google