Skip to content

Instantly share code, notes, and snippets.

@miry
Last active May 8, 2021 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miry/0ca386ae5055da94cb5b6b7589cd039d to your computer and use it in GitHub Desktop.
Save miry/0ca386ae5055da94cb5b6b7589cd039d to your computer and use it in GitHub Desktop.
Overcommit configuration for Crystal projects
# 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