Skip to content

Run pre-commit checks

Pre-commit hooks are scripts that run before each commit to ensure code quality by checking for common issues.

Running pre-commit checks

If you have the Python environment ready, you can, for example, invoke all checks, by running the following command:

pre-commit run --all-files

Customizing hooks

No satisfied with the checks, customize hooks by editing .pre-commit-config.yaml. Refer to pre-commit documentation for more details.