unioslo / zabbix-auto-config

MIT License
3 stars 6 forks source link

Add pre-commit config for linting and formatting #77

Closed pederhan closed 7 months ago

pederhan commented 7 months ago

This PR adds a pre-commit config which sets up Git hooks for linting and formatting.

Python files are linted and formatted with Ruff, while the pyproject.toml file is linted with validate-pyproject. YAML files are checked with the default pre-commit hooks.

This PR will generate a rather large diff, since the pre-commit hooks were run on all files with pre-commit run --all-files.