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

ENH: Add GitHub Actions workflow for running "pre-commit" #1170

Merged
merged 1 commit into from
Jan 13, 2024

Commits on Jan 13, 2024

  1. ENH: Add GitHub Actions workflow for running "pre-commit"

    This commit adds workflow leveraging pre-commit, a framework for
    managing and maintaining pre-commit hooks.
    
    See https://pre-commit.com/ and https://github.com/pre-commit/action
    
    Running the pre-commit locally can be done using the following
    command:
    
      pre-commit run --all-files
    
    The hooks enabled in the "pre-commit-config.yaml" configuration
    file are:
    
    * check-added-large-files
      Prevent giant files from being committed.
    
      Set the size to 1024 to match the value hard-coded in
      https://github.com/Slicer/Slicer/blob/hooks/pre-commit#L125
    
    * check-case-conflict
      Check for files with names that would conflict on a case-insensitive
      filesystem like MacOS HFS+ or Windows FAT.
    
    * check-merge-conflict
      Check for files that contain merge conflict strings.
    
    * check-symlinks
      Checks for symlinks which do not point to anything.
    jcfr committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    f2cbee1 View commit details
    Browse the repository at this point in the history