summaryrefslogtreecommitdiff
path: root/.pylintrc
AgeCommit message (Collapse)Author
2024-03-14[fix] .pylintrc mode signature to conf-unixMarkus Heiser
In pylint and python's config parser [1] the default symbol for comments is '#'. The dialect is based on unix, while the classic dialect comes from windows and uses a semicolon for comments. [1] https://docs.python.org/3/library/configparser.html#module-configparser Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-03-11[mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTIONMarkus Heiser
In the past, some files were tested with the standard profile, others with a profile in which most of the messages were switched off ... some files were not checked at all. - ``PYLINT_SEARXNG_DISABLE_OPTION`` has been abolished - the distinction ``# lint: pylint`` is no longer necessary - the pylint tasks have been reduced from three to two 1. ./searx/engines -> lint engines with additional builtins 2. ./searx ./searxng_extra ./tests -> lint all other python files Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-02-10[mod] make python code pylint 2.16.1 compliantMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-03[fix] prepare for pylint 2.14.0Markus Heiser
Remove issue reported by Pylint 2.14.0: - no-self-use: has been moved to optional extension [1] - The refactoring checker now also raises 'consider-using-generator' messages for max(), min() and sum(). [2] .pylintrc: - <option name>-hint has been removed since long, Pylint 2.14.0 raises an error on invalid options - bad-continuation and bad-whitespace have been removed [3] [1] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/full.html#what-s-new-in-pylint-2-14-0 [2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.6/summary.html#summary-release-highlights Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-17[pylint] disable consider-using-f-string in .pylintrcMarkus Heiser
Pylint 2.11 added [1][2] consider-using-f-string: Emitted when .format() or '%' is being used to format a string. We're not ready to enforce f-strings everywhere, so just disable this new warning. [1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html [2] https://github.com/PyCQA/pylint/issues/3592 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[pylint] .pylintrc - disable missing-function-docstringMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-11-02[mod] pylint: add extension-pkg-whitelist=lxml.etreeAlexandre Flament
2019-11-28boilerplate: add pylint / WIP: balance linting with pylintMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>