-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
59 lines (52 loc) · 1.41 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[flake8]
# see https://flake8.pycqa.org/en/latest/user/configuration.html
ignore =
#
# allow complex functions
C901,
D203,
# continuation line missing indentation or outdented
E122,
E126,
# allow continuation line over-indented for hanging indent
E501,
# allow lambda functions
E731,
# allow ambiguous variable names
E741,
# allow unused local variables
F821,
# undefined name
F841,
# allow to annotate not used variables
F842,
# Do not pass iface (QgisInterface) as an argument, instead import it: 'from qgis.utils import iface'
QGS105,
# allow line break before binary operator
W503
max-line-length=120
max-complexity = 10
exclude =
# No need to traverse the git directory
.git,
doc
# skip submodules
example
# There's no value in checking cache directories
__pycache__,
deploy
tests
eotimeseriesviewer/qgispluginsupport/qps/pyqtgraph
scripts
test-reports,
test-outputs,
qgisresources
# skip autogenerated files
*_rc.py
per-file-ignores =
# QGS104 Use 'import qgis.PyQt.pyrcc_main' instead of 'import PyQt5.pyrcc_main'
# just not available in OSGeo4W installations
# script should run immediately which site.addsitedir(REPO) before other imports
scripts/*.py : E402
# 'import qgis.PyQt.pyrcc_main' instead of 'import PyQt5.pyrcc_main'
*/resources.py: QGS104