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

Add CI infrastructure for pre-commit checks #61

Closed
wants to merge 3 commits into from

Commits on Aug 18, 2024

  1. STYLE: Ensure source files line ending is consistent

    This commit updates the sources files based on the automatic fixes
    applied using the "end-of-file-fixer" pre-commit hook introduced in
    the subsequent commit.
    jcfr committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    0e7964b View commit details
    Browse the repository at this point in the history
  2. STYLE: Fix formatting of json files

    This commit updates the sources files based on the automatic fixes
    applied using the "mirrors-prettier" pre-commit hook introduced in
    the subsequent commit.
    jcfr committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    d74bfc5 View commit details
    Browse the repository at this point in the history
  3. ENH: Add CI infrastructure for pre-commit checks

    Introduce a noxfile with two sessions:
    1. pre-commit: Runs pre-commit checks on all files except the ones generated by cookiecutter.
    2. pre-commit-cookie: Runs pre-commit checks on a generated folder based on the cookiecutter template.
    
    The approach was adapted from the implementation at https://github.com/scientific-python/cookie/, originally contributed by @henryiii.
    
    Add corresponding GitHub Actions workflows in lint.yml to automate the pre-commit checks.
    jcfr committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    d837636 View commit details
    Browse the repository at this point in the history