-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.cfg
38 lines (36 loc) · 1.93 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
# Codeclimate is using pycodestyle and still requires the section
# to be named pep8
# See https://docs.codeclimate.com/v1.0/docs/pep8
[pep8]
# W503: line break occurred before a binary operator (not recommended in PEP 8)
exclude = */migrations/*,__pycache__,manage.py,config/settings/*,
ignore = W503
max-line-length = 99
[flake8]
# D100: Missing docstring in public module
# D101 Missing docstring in public class
# D102 Missing docstring in public method
# D103 Missing docstring in public function
# D104: Missing docstring in public package
# D105 Missing docstring in magic method
# D106: Missing docstring in public nested class
# D107 Missing docstring in __init__
# D200: One-line docstring should fit on one line with quotes
# D203: 1 blank line required before class docstring
# D205: 1 blank line required between summary line and description
# D400: First line should end with a period
# D401: First line should be in imperative mood
# W503: line break occurred before a binary operator (not recommended in PEP 8)
# E402 module level import not at top of file
# I202 Additional newline in a group of imports. 'from django.conf import settings' is identified as Third Party and 'import django' is identified as Third Party.
# TODO: the errors below should be fixed and then removed from ignore list
# this has been added to the ignore list, so that flake8 can be upgraded to 6.0.0
# B017 `assertRaises(Exception)` and `pytest.raises(Exception)` should be considered evil.
# B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks.
# B026 Star-arg unpacking after a keyword argument is strongly discouraged
exclude = */migrations/*,__pycache__,manage.py,config/settings/*,env/*,venv/*
ignore = D100,D101,D102,D103,D104,D105,D106,D107,D200,D203,D205,D400,D401,W503,E402,I202,B017,B019,B026,N811
max-line-length = 99
max-complexity = 10
application-import-names = config,datahub,script_utils
import_order_style = smarkets