forked from EnMAP-Box/enmap-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
69 lines (63 loc) · 2.06 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
59
60
61
62
63
64
65
66
67
68
69
[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 our git directory
.git,
# skip submodules
enmapbox/qgispluginsupport
enmapbox/apps/lmuapps
# skip external applications (too much work)
enmapbox/apps # external code
enmapbox/coreapps/_classic # will be removed soon
enmapbox/coreapps/enmapboxapplications # will be removed soon
site-packages
# There's no value in checking cache directories
__pycache__,
deploy
test-reports,
test-outputs,
qgisresources
# skip autogenerated files
*_rc.py
tests/testdata/__init__.py
# no need to check GEE collection definitions
enmapbox/coreapps/geetimeseriesexplorerapp/user_collections
enmapbox/coreapps/geetimeseriesexplorerapp/standard_collections
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
enmapbox/eo4qapps/geetimeseriesexplorerapp/*.py : F821
enmapbox/__main__.py: E402
enmapbox/gui/__init__.py: F401
enmapbox/gui/utils.py: F401
# does not work: from qgis.PyQt.Qsci import QsciScintilla, QsciLexerPython'
# instead of 'from PyQt5.Qsci import QsciScintilla, QsciLexerPython'
enmapbox/gui/widgets/codeeditwidget.py: QGS103