forked from valory-xyz/dev-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
58 lines (51 loc) · 1.43 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
[flake8]
paths=packages
exclude=.md,
*_pb2.py,
custom_types.py,
__init__.py,
max-line-length = 88
select = B,C,D,E,F,I,W,
ignore = E203,E501,W503,D202,B014,D400,D401,DAR
application-import-names = packages,tests,scripts
# ignore as too restrictive for our needs:
# D400: First line should end with a period
# D401: First line should be in imperative mood
# E501: https://www.flake8rules.com/rules/E501.html (Line too long)
# E203: https://www.flake8rules.com/rules/E203.html (Whitespace)
# W503: https://www.flake8rules.com/rules/W503.html (Line break)
# D202: blank lines
# B014: redundant exception
[isort]
# for black compatibility
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
ensure_newline_before_comments = True
line_length=88
# custom configurations
order_by_type=False
case_sensitive=True
lines_after_imports=2
skip =
skip_glob =
known_first_party=aea_consensus_algorithms
known_packages=packages
known_local_folder=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,PACKAGES,LOCALFOLDER
[mypy]
python_version = 3.8
strict_optional = True
exclude=(.*_pb2|.*custom_types)
# Before adding a module here, make sure it does not support type hints
# Per-module options for aea dir:
[mypy-packages.open_aea.protocols.signing.signing_pb2]
ignore_errors=True
[mypy-aea_ledger_ethereum.*]
ignore_missing_imports=True
[darglint]
docstring_style=sphinx
strictness=short
ignore_regex=async_act
ignore=DAR401