# Lefthook configuration. For more information, see: # https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md pre-push: parallel: true commands: # Run ruby linting rubocop: files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD glob: '*.{rb,rake}' run: bundle exec rubocop --parallel --force-exclusion {files} # Run all tests (warn if there are any missing tools required for tests). rspec: run: bundle exec rspec -f progress glob: '*.rb'