-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
85 lines (77 loc) · 2.01 KB
/
setup.cfg
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[metadata]
name = zever_local
version = 1.0.3
author = NECH
description = Connect locally to a Zeversolar inverter.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/NECH2004/zever_local
project_urls =
Bug Tracker = https://github.com/NECH2004/zever_local/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent
[options]
package_dir =
= src
packages = find:
python_requires = >=3.6
[options.packages.find]
where = src
[coverage:run]
source = src/zever_local/
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplemented()
if __name__ == '__main__':
main()
show_missing = true
[tool:pytest]
testpaths = tests/
asyncio_mode=auto
norecursedirs = .git
addopts =
--cov=src/zever_local/
[flake8]
# https://github.com/ambv/black#line-length
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
[isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
# splits long import on multiple lines indented by 4 spaces
multi_line_output = 3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
indent = " "
# by default isort don't check module indexes
not_skip = __init__.py
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY
known_first_party = custom_components.zever_local, tests
forced_separate = tests
combine_as_imports = true
#[mypy]
#python_version = 3.9
#ignore_errors = true
#follow_imports = silent
#ignore_missing_imports = true
#warn_incomplete_stub = true
#warn_redundant_casts = true
#warn_unused_configs = true