-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.cfg
43 lines (35 loc) · 1.04 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
[flake8]
# Rules ignored:
# ==============
# E721: Not a really useful rule forcing the use of instanceof() where we just want
# exact typing in our use cases
extend-ignore = E721
exclude =
# Pretty standard ignores
.git,
__pycache__,
# Build output artifacts
middleware/build/build,
# We don't want to mess with third party stuff
middleware/third-party,
# Tradeoff between recommended 79 and maximum accepted of 100 chars
max-line-length = 90
# Better be explicit (this is the default)
indent-size = 4
# Ignore unused imports in __init__.py files
per-file-ignores =
__init__.py:F401,
middleware/tests/sgx/test_envelope.py:E122,
middleware/tests/admin/test_certificate_v2_resources.py:E501,
middleware/tests/admin/test_attestation_utils_resources.py:E501,
show-source = False
statistics = True
[yapf]
based_on_style = pep8
spaces_before_comment = 1
split_before_logical_operator = true
# AKA max line length
column_limit = 90
continuation_align_style = space
indent_width = 4
indent_blank_lines = False