debian-forge/test
David Rheinsberg c9ac6d5ee6 test/src: improve file enumeration
Improve the file-enumeration to first check for all files ending in
`*.py`, and for everything else run `/bin/file` on it, and check for
python mime-types.

Note that we expect the caller to open all those files anyway, and thus
this should not any significant overhead, unless we end up with lots of
non-python files in the repository (which is highly unlikely). But even
then, `/bin/file` only reads the first few bytes of a file, and will
default if those are not sufficient to detect the file type. Hence, not
much overhead is expected by this.

This change will now start adding scripts in ./tools/ to the linter,
including osbuild-mpp.

Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
2022-09-23 12:08:10 +02:00
..
cases osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
data ci: update container and actions 2022-09-23 12:08:10 +02:00
mod tree: pep8 + linter fixes 2022-09-23 12:08:10 +02:00
run osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
src test/src: improve file enumeration 2022-09-23 12:08:10 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
initrd.py test: explicit encodings for open() 2022-09-09 15:33:29 +02:00
test.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00