Last active
May 8, 2021 17:32
-
-
Save miry/0ca386ae5055da94cb5b6b7589cd039d to your computer and use it in GitHub Desktop.
Overcommit configuration for Crystal projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample configuration for https://github.com/sds/overcommit to support Crystal projects | |
--- | |
verify_signatures: false | |
PreCommit: | |
# NOTE: LineEndings does not work with git versions < 2.x | |
# LineEndings: | |
# enabled: true | |
YamlLint: | |
enabled: true | |
YamlSyntax: | |
enabled: true | |
TrailingWhitespace: | |
enabled: true | |
CrystalFormat: | |
enabled: true | |
description: Format with crystal tool format | |
required_executable: crystal | |
command: ['crystal', 'tool', 'format'] | |
parallelize: false | |
include: '**/*.cr' | |
CrystalTest: | |
enabled: true | |
description: Run tests | |
required_executable: crystal | |
parallelize: false | |
command: ['crystal', 'spec'] | |
include: '**/*_spec.cr' | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment