QGIS/setup.cfg

147 lines
5.5 KiB
INI
Raw Permalink Normal View History

2020-05-05 21:53:44 +02:00
[flake8]
2020-05-05 22:36:52 +02:00
ignore =
2021-03-14 22:13:56 +07:00
# module imported but unused
# done in the "tests" folder
2021-03-14 22:13:56 +07:00
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,
2020-05-05 21:53:44 +02:00
2021-03-14 22:13:56 +07:00
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,
2020-05-05 21:53:44 +02:00
2021-03-14 22:13:56 +07:00
exclude =
2020-05-05 21:53:44 +02:00
# 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/,
2020-05-05 21:53:44 +02:00
python/core/auto_additions/,
python/analysis/auto_additions/,
python/gui/auto_additions/,
python/server/auto_additions/,
2023-12-07 14:36:25 +01:00
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/,
2021-03-14 22:13:56 +07:00
# 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,