bytelyst-devops-tools/README.md

696 B

Pre-commit Hooks

This project uses pre-commit to ensure code quality and consistent formatting for all contributors.

First-time setup

  1. Run the setup script (recommended):

    ./setup.sh
    

    This will install pre-commit (if not already installed) and set up the git hooks for you.

  2. Or, manually install pre-commit and the hooks:

    pip install pre-commit
    pre-commit install
    

Running hooks manually

To check all files with pre-commit hooks:

pre-commit run --all-files

CI Enforcement

All commits and pull requests are checked with pre-commit hooks in CI. You must pass these checks to merge code.