From 7dfa1583ea8038a339cc0102ed5c741b10662582 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 2 Dec 2022 17:14:45 +0300 Subject: [PATCH] chore: Update lefthook.yml Signed-off-by: Valentin Kiselev --- lefthook.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index ae4af07..79bf09c 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -7,9 +7,8 @@ pre-commit: parallel: true commands: appraisal: - glob: "Appraisals" - files: git diff --name-only master - run: bundle exec appraisal install && git add gemfiles/*.gemfile + glob: "{Appraisals,*.gemfile}" + run: echo {staged_files} > /dev/null; bundle exec appraisal install && git add gemfiles/*.gemfile rubocop: glob: "{*.rb,*.gemspec,Gemfile,Rakefile}" run: bundle exec rubocop -A {staged_files} && git add {staged_files} @@ -18,5 +17,4 @@ pre-push: commands: rspec: glob: "*.rb" - files: git diff --name-only master - run: bundle exec appraisal rspec + run: echo {push_files} > /dev/null; bundle exec appraisal rspec