Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce pre-commit framework #850

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Apr 9, 2024

  1. feat: introduce pre-commit framework

    This replaces the custom clang-format script with the pre-commit framework,
    making it easier to add checks in the future and simplifying GitHub
    integration.
    
    The GH workflow is adapted to run checks now as well.
    
    To use it locally, all you need to do is install pre-commit locally, typically
    via:
    ```
    pip3 install --user pre-commit
    ```
    
    You can then run `pre-commit run --all` to run it locally. Note that this does _not_ install
    a Git hook. If you want that as well, run `pre-commit install`.
    
    For more details on pre-commit and other installation options, see
    https://pre-commit.com and https://pre-commit.com/#install
    ahans committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    d38c023 View commit details
    Browse the repository at this point in the history
  2. fix: apply fixes from pre-commit run --all

    Some tests get manual formatting and local `clang-format off` to work around
    exercism/cpp-test-runner#73
    ahans committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a75ab3d View commit details
    Browse the repository at this point in the history