forked from DefectDojo/django-DefectDojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
44 lines (40 loc) · 1008 Bytes
/
.flake8
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
[flake8]
# Documentation for flake8 http://flake8.pycqa.org/en/3.1.1/user/index.html
# we should not ignore these mistakes !!!!!!!!
ignore =
# Suppress - line too long (> 79 characters)
E501
# Suppress - Continuation line missing indentation or outdented
E127
# Suppress - Function is too complex
C901
# Multiple statements on one line
E704
# Bare except
E722
# Local variable
F841
# May be undefined
F405
# list comprehension redefines
F812
# module level imports
E402
E126
E128
# line break after binary operator
W504
# Line break occurred before a binary operator (conflicting with black)
W503
# undefined file name excpetion
F821
exclude =
# No need to traverse our git directory
.git,
# Exclude unittests
dojo/unittests,
# There's no value in checking cache directories
__pycache__,
# This contains of branch that we don't want to check
# dev
max-complexity = 10