Skip to content
Snippets Groups Projects
Commit d92fba4d authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

lint: pylint and flake8 removed

parent 61350778
Branches
Tags
1 merge request!1621python: Ruff linter and formatter
......@@ -245,12 +245,10 @@ trivial_checks: # aggregated to save some processing
- ci/no_assert_check.sh
- ci/deckard_commit_check.sh
lint:other:
lint:luacheck:
<<: *sanity
script:
- meson build_ci_lint &>/dev/null
- ninja -C build_ci* pylint
- ninja -C build_ci* flake8
- ninja -C build_ci* luacheck
lint:pedantic:
......
......@@ -310,8 +310,6 @@ install_data(
message('--- lint dependencies ---')
clangtidy = find_program('clang-tidy', required: false)
luacheck = find_program('luacheck', required: false)
flake8 = find_program('flake8', required: false)
pylint_run = find_program('scripts/meson/run-pylint.sh')
message('-------------------------')
if clangtidy.found()
......@@ -338,22 +336,6 @@ if luacheck.found()
)
endif
if flake8.found()
run_target(
'flake8',
command: [
flake8,
'--max-line-length=100',
meson.source_root() / 'tests' / 'pytests',
],
)
endif
run_target(
'pylint',
command: pylint_run,
)
# Summary message
# NOTE: ternary operator in format() not supported
......
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
set -o errexit -o nounset
cd "$(dirname ${0})/../.."
# Find Python modules and standalone Python scripts
FILES=$(find ./tests/pytests \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
-name '*.py' -print)
python3 -m pylint -j 0 --rcfile ./tests/pytests/pylintrc ${FILES}
# SPDX-License-Identifier: GPL-3.0-or-later
[MESSAGES CONTROL]
disable=
missing-docstring,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes,
fixme,
unused-import, # checked by flake8
line-too-long, # checked by flake8
invalid-name,
broad-except,
global-statement,
no-else-return,
redefined-outer-name, # commonly used with pytest fixtures
consider-using-with,
consider-using-f-string,
[SIMILARITIES]
min-similarity-lines=6
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=no
[DESIGN]
max-parents=10
max-locals=20
[TYPECHECK]
ignored-modules=ssl
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment