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:
parent
be1ba5be08
commit
5c47be179c
1 changed files with 2 additions and 1 deletions
3
tox.ini
3
tox.ini
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue