tox: add all non shell file in tools/ to lintables

Right now the tools directory is not checked by pylint because
it will not auto-detect what files are python files and instead
just skip the dir if it does not have a __init__.py.

This commit uses `tox-backticks` to run a custom find to ensure
the python files are explicitely added. I'm not sure we can
use tox-backticks or we need it packages for fedora/rhel?

If we cannot use it we need to look into either a custom tox
plugin to support more rich globbing or just move out
`tools/set-env-variables.sh` as it's the only non-python code
in the repo and it will trip up pylint (syntax error).
This commit is contained in:
Michael Vogt 2024-02-20 09:33:38 +01:00 committed by Brian C. Lane
parent be1ba5be08
commit 5c47be179c

View file

@ -22,9 +22,10 @@ deps =
pykickstart
# required by pykickstart but not pulled in automatically :/
requests
tox-backticks
setenv =
LINTABLES = osbuild/ assemblers/* devices/* inputs/* mounts/* runners/* sources/* stages/*.* stages/test/*.py test/ tools/
LINTABLES = osbuild/ assemblers/* devices/* inputs/* mounts/* runners/* sources/* stages/*.* stages/test/*.py test/ `find ./tools ! -name "*.sh" -type f`
TYPEABLES = osbuild
TYPEABLES_STRICT = ./osbuild/main_cli.py