forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
146 lines (143 loc) · 5.46 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[flake8]
ignore =
# module imported but unused
# done in the "tests" folder
F401,
# module level import not at top of file
E402,
# line too long (82 characters)
E501,
# do not use variables named ‘l’, ‘O’, or ‘I’
E741,
# local variable name is assigned to but never used
F841,
# class names should use CapWords convention
N801,
# function name should be lowercase
N802,
# argument name should be lowercase
N803,
# first argument of a classmethod should be named 'cls'
N804,
# first argument of a method should be named 'self'
N805,
# variable in function should be lowercase
N806,
# function name should not start and end with '__'
N807,
# camelcase imported as lowercase
N813,
# camelcase imported as constant (distinct from N817 for selective enforcement)
N814,
# mixedCase variable in class scope
N815,
# mixedCase variable in global scope
N816,
W503,
W504,
per-file-ignores =
# E722: Do not use bare excepts -- A candidate to remove from this list!
cmake/FindPyQt5.py:E722,
python/console/console_editor.py:E722,
python/console/console_sci.py:E722,
python/plugins/db_manager/db_model.py:E722,
python/plugins/db_manager/db_plugins/spatialite/connector.py:E722,
python/plugins/db_manager/dlg_query_builder.py:E722,
python/plugins/db_manager/dlg_sql_layer_window.py:E722,
python/plugins/db_manager/dlg_sql_window.py:E722,
python/plugins/db_manager/table_viewer.py:E722,
python/plugins/processing/algs/gdal/GdalUtils.py:E722,
python/plugins/processing/algs/qgis/FieldPyculator.py:E722,
python/plugins/processing/algs/qgis/FindProjection.py:E722,
python/plugins/processing/algs/qgis/TextToFloat.py:E722,
python/plugins/processing/algs/qgis/ui/HeatmapWidgets.py:E722,
python/plugins/processing/algs/qgis/ui/InterpolationWidgets.py:E722,
python/plugins/processing/algs/saga/SagaUtils.py:E722,
python/plugins/processing/core/outputs.py:E722,
python/plugins/processing/core/parameters.py:E722,
python/plugins/processing/core/ProcessingConfig.py:E722,
python/plugins/processing/core/ProcessingLog.py:E722,
python/plugins/processing/core/Processing.py:E722,
python/plugins/processing/gui/AlgorithmDialog.py:E722,
python/plugins/processing/gui/AlgorithmLocatorFilter.py:E722,
python/plugins/processing/gui/ConfigDialog.py:E722,
python/plugins/processing/gui/ExtentSelectionPanel.py:E722,
python/plugins/processing/gui/Help2Html.py:E722,
python/plugins/processing/gui/menus.py:E722,
python/plugins/processing/gui/NumberInputPanel.py:E722,
python/plugins/processing/gui/PointSelectionPanel.py:E722,
python/plugins/processing/gui/ProcessingToolbox.py:E722,
python/plugins/processing/gui/RangePanel.py:E722,
python/plugins/processing/gui/wrappers.py:E722,
python/plugins/processing/preconfigured/PreconfiguredAlgorithmDialog.py:E722,
python/plugins/processing/script/ScriptEditorDialog.py:E722,
python/plugins/processing/script/ScriptUtils.py:E722,
python/plugins/processing/tools/dataobjects.py:E722,
python/plugins/processing/tools/general.py:E722,
python/plugins/processing/tools/vector.py:E722,
python/pyplugin_installer/installer_data.py:E722,
python/pyplugin_installer/installer.py:E722,
python/pyplugin_installer/qgsplugindependenciesdialog.py:E722,
python/pyplugin_installer/qgsplugininstallerinstallingdialog.py:E722,
python/user.py:E722,
python/utils.py:E722,
scripts/process_function_template.py:E722,
scripts/random_vector.py:E722,
tests/code_layout/doxygen_parser.py:E722,
tests/code_layout/test_qgssipcoverage.py:E722,
tests/src/python/mockedwebserver.py:E722,
tests/src/python/providertestbase.py:E722,
tests/src/python/qgis_wrapped_server.py:E722,
tests/src/python/test_authmanager_oauth2_ows.py:E722,
tests/src/python/test_authmanager_password_ows.py:E722,
tests/src/python/test_authmanager_pki_ows.py:E722,
tests/src/python/test_db_manager_gpkg.py:E722,
tests/src/python/test_db_manager_postgis.py:E722,
tests/src/python/test_db_manager_spatialite.py:E722,
tests/src/python/test_offline_editing_wfs.py:E722,
tests/src/python/test_qgsdelimitedtextprovider.py:E722,
tests/src/python/test_qgsexpressionlineedit.py:E722,
tests/src/python/test_qgsfilterlineedit.py:E722,
tests/src/python/test_qgsgeometry.py:E722,
tests/src/python/test_qgsnewgeopackagelayerdialog.py:E722,
tests/src/python/test_qgsprojectbadlayers.py:E722,
tests/src/python/test_qgsproviderconnection_mssql.py:E722,
tests/src/python/test_qgsqueryresultmodel.py:E722,
tests/src/python/test_qgsserver_api.py:E722,
tests/src/python/test_qgsserver_landingpage.py:E722,
tests/src/python/test_qgsserver_security.py:E722,
tests/src/python/test_qgsserver_wms.py:E722,
tests/src/python/test_qgssettings.py:E722,
tests/src/python/test_qgssymbollayer.py:E722,
tests/src/python/test_qgstreewidgetitem.py:E722,
exclude =
# There is simply too much in here, somebody will need to check these manually
src/plugins/grass/scripts,
# Generated code, hacking allowed. Feel free to go over it
python/3d/auto_additions/,
python/core/auto_additions/,
python/analysis/auto_additions/,
python/gui/auto_additions/,
python/server/auto_additions/,
python/PyQt6/3d/auto_additions/,
python/PyQt6/core/auto_additions/,
python/PyQt6/analysis/auto_additions/,
python/PyQt6/gui/auto_additions/,
python/PyQt6/server/auto_additions/,
# Plenty of star imports used
python/PyQt/
cmake/
# People using a virtualenv
.venv/
venv/
[isort]
multi_line_output = 3
include_trailing_comma = True
use_parentheses = True
ensure_newline_before_comments = True
lines_between_types = 1
skip =
.venv,
venv,
# Clean later
python,