debian-forge/osbuild
Simon de Vlieger d60690ce46 tox: add tox
`tox` is a standard testing tool for Python projects, this allows you to
test locally with all your installed Python version with the following
command:

`tox -m test -p all`

To run the tests in parallel for all supported Python versions.

To run linters or type analysis:

```
tox -m lint -p all
tox -m type -p all
```

This commit *also* disables the `import-error` warning from `pylint`,
not all Python versions have the system-installed Python libraries
available and they can't be fetched from PyPI.

Some linters have been added and the general order linters run in has
been changed. This allows for quicker test failure when running
`tox -m lint`. As a consequence the `test_pylint` test has been removed
as it's role can now be fulfilled by `tox`.

Other assorted linter fixes due to newer versions:
- use a str.join method (`consider-using-join`)
- fix various (newer) mypy and pylint issues
- comments starting with `#` and no space due to `autopep8`

This also changes our CI to use the new `tox` setup and on top of that
pins the versions of linters used. This might move into separate
requirements.txt files later on to allow for easier updating of those
dependencies.
2023-08-01 15:01:13 +02:00
..
formats tox: add tox 2023-08-01 15:01:13 +02:00
util tox: add tox 2023-08-01 15:01:13 +02:00
__init__.py Post release version bump 2023-07-19 08:13:33 +00:00
__main__.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
api.py Fix errors reported by new version of mypy 2023-04-12 11:57:18 +02:00
buildroot.py tox: add tox 2023-08-01 15:01:13 +02:00
devices.py devices: new helper to ensure a device node exists 2022-11-22 18:28:38 +01:00
host.py tox: add tox 2023-08-01 15:01:13 +02:00
inputs.py inputs: Move arguments for InputService.map to a temporary file 2023-06-27 10:56:10 +02:00
loop.py tox: add tox 2023-08-01 15:01:13 +02:00
main_cli.py osbuid: integrate FsCache into ObjectStore 2022-12-09 12:03:40 +01:00
meta.py meta: ensure we have an absolute path for Index 2022-10-11 12:49:16 +02:00
monitor.py monitor: show pipeline's source epoch 2022-12-15 13:10:35 +00:00
mounts.py mounts: add possiblity to use norecovery with ro 2023-02-10 14:09:03 +01:00
objectstore.py tox: add tox 2023-08-01 15:01:13 +02:00
pipeline.py tox: add tox 2023-08-01 15:01:13 +02:00
remoteloop.py loop: use LOOP_CONFIGURE instead of LOOP_SET_FD 2023-05-05 15:42:47 +02:00
sources.py Fix errors reported by new version of mypy 2023-04-12 11:57:18 +02:00