xenserver / status-report

Program that gathers data for xenserver host diagnostics
GNU Lesser General Public License v2.1
1 stars 9 forks source link

Run pre-commit checks in CI (including the Xen-Bugtool Test Environment) #26

Closed bernhardkaindl closed 9 months ago

bernhardkaindl commented 9 months ago

Add pre-commit to run in the GitHub Workflow on each push and PR update:

Many Python packages use the pre-commit Python Framework for sanity checks when updating Python projects.

Additionally, you can run it locally for faster fixing of issues using:

$ pip3 install pre-commit
$ pre-commit run

The most popular checks are:

Those can also be helpful and for small project, they are fast:

Add these checks to GitHub CI and fix the issues which needed fixing, like missing docstrings.

Developers can also elect to run checks locally during development See the header of the config file .pre-commit-config.yaml for details how to install it locally.