Skip to content

Commit

Permalink
Improve skip messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Oct 21, 2023
1 parent 19b07e5 commit 5669a09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/fast_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ def run_cmd(self, files: list[str], skip_list: list[str], no_change_filter: bool
if self.extensions is not None:
files = [f for f in files if any(f.endswith(e) for e in self.extensions)]

if self.command in skip_list or (self.accepts_files and not no_change_filter and not files):
logging.info(f"SKIP: {self.command}")
if self.command in skip_list:
logging.info(f"SKIP: {self.command} (skipped manually)")
return True
if self.accepts_files and not no_change_filter and not files:
logging.info(f"SKIP: {self.command} (no modified files)")
return True

if not self.accepts_files:
Expand Down

0 comments on commit 5669a09

Please sign in to comment.