Skip to content

Commit

Permalink
Respect excludes in ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Oct 30, 2023
1 parent 812fe41 commit df22c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def collect(self):

def check_file(path):
ruff = find_ruff_bin()
command = [ruff, "check", path, '--quiet', '--show-source']
command = [ruff, "check", path, '--quiet', '--show-source', 'force-exclude']
child = Popen(command, stdout=PIPE, stderr=PIPE)
stdout, _ = child.communicate()
if stdout:
Expand All @@ -72,7 +72,7 @@ def check_file(path):

def format_file(path):
ruff = find_ruff_bin()
command = [ruff, "format", path, '--quiet', '--check']
command = [ruff, "format", path, '--quiet', '--check', '--force-exclude']
with Popen(command) as child:
pass

Expand Down

0 comments on commit df22c01

Please sign in to comment.