This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
setup.cfg
77 lines (74 loc) · 2.15 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
[nosetests]
verbosity=2
detailed-errors=True
cover-package=flask_mongorest
cover-erase=True
[flake8]
ignore=
# !!! make sure you have a comma at the end of each line EXCEPT the LAST one
# Previously existing rules
E2,E302,E5,W391,F403,F405,E501,E722,E731,F999,W504,
# Future imports
FI,
# Missing docstrings
D1,
# One-line docstring should fit on one line with quotes.
# We ignore this because it's OK to buy yourself a few extra characters
# for the summary line even if the summary line is *the only* line.
D200,
# 1 blank line required between summary line and description
D205,
# Multi-line docstring summary should start at the first line.
# We ignore this because we agreed in #20553 that we we want to put the
# summary line below """ for multi-line docstrings.
D212,
# First line should end with a period
D400,
# First line should end with a period, question mark, or exclamation point.
# TODO We should fix this.
#D415,
# variable in function should be lowercase - we use CONSTANT_LIKE stuff in functions
#N806,
# This is not PEP8-compliant and conflicts with black
W503,
W504,
# This is not PEP8-compliant and conflicts with black
E203,
# Loop control variable 'x' not used within the loop body.
#B007,
# Do not call assert False
#B011
# Too intrusive, sometimes makes code less readable
SIM106
# Allow f-strings
SFS301,
# Allow .format
SFS201,
# exception class names -- these would require breaking changes
N818
exclude=build,dist,venv,.tox,.eggs,src
max-complexity=35
banned-modules=
typing.Text = use str
require-code=True
[isort]
skip=build,dist,venv,.tox,.eggs,src
known_tests=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER
default_section=THIRDPARTY
use_parentheses=true
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
combine_as_imports=True
line_length=87
[mypy]
python_version = 3.7
ignore_missing_imports = True
no_implicit_optional = True
strict_equality = True
follow_imports = normal
warn_unreachable = True
show_error_context = True
pretty = True
files = flask_mongorest