forked from GoodRx/braze-client
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.cfg
79 lines (69 loc) · 2.1 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
###############################################################################
# flake8 configuration
###############################################################################
[flake8]
max-line-length = 120
select =
E,
F,
W,
# http://www.pydocstyle.org/en/latest/error_codes.html
# Docstring whitespace issues
D2,
# Multi-line docstring summary should start at the second line, i.e. not
# the same line as the triple quotes
D213,
# Docstring quotes issues
D3,
# First word of the docstring should not be "This"
D404,
ignore =
# Our preferred style is line breaks before binary operators
# ref: https://github.com/PyCQA/pycodestyle/issues/498
W503,
# Our docstring style allows for a multi-line summary, e.g.:
#
# """
# Prevent database use without the appropriate fixture/marker, used
# automatically.
#
# Additional content goes here.
# """
D205,
# Allow before/after whitespaces in oneline docstrings
D210,
# Inverse of D213
D212,
exclude =
.git,
.tox,
.cache,
.coverage,
__pycache__,
.pyenv,
###############################################################################
# isort configuration
###############################################################################
[isort]
# Only change a file if the result has correct Python syntax
atomic = True
# Paths to ignore
skip =
.git,
.tox,
.pyenv,
# Sort `__init__.py`s unless they contain an `# isort:skip_file` comment
not_skip = __init__.py
# Non-stdlib and non-GoodRx code will be treated as third-party
default_section = THIRDPARTY
# concurrent.futures backport
known_standard_library = concurrent.futures
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
# Multiple imports from a single module will go on separate lines
force_single_line = True
# Sort alphabetically within each module rather than by type (e.g. class/function)
force_sort_within_sections = True
order_by_type = False
# Longest line-length allowed for a single import. Try to keep this in sync
# with flake8's max-line-length
line_length = 120