-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
54 lines (46 loc) · 1.21 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
[bdist_wheel]
# we dont support py2
universal = 0
[flake8]
paths=propel_client,tests
exclude=.md,
max-line-length = 88
select = B,C,D,E,F,I,W,
ignore = E203,E501,W503,D202,B014,D400,D401,DAR,B028,B017
application-import-names = propel_client,tests
# 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
[pylint.BASIC]
good-names = e,f,i,d,fn
[pylint.FORMAT]
max-line-length = 120
[pycodestyle]
max-line-length = 120
[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
known_first_party=propel_client
known_local_folder=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy]
python_version = 3.10
strict_optional = True
[darglint]
docstring_style=sphinx
strictness=short
ignore=DAR401