Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information