Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Jul 1, 2024
1 parent 647bc3c commit 4e81892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_examples/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def ruff_check(
extra_ruff_args: tuple[str, ...] = (),
) -> str:
args = 'ruff', 'check', '-', *config.ruff_config(), *extra_ruff_args

p = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, universal_newlines=True)
stdout, stderr = p.communicate(example.source, timeout=2)
if p.returncode == 1 and stdout:
Expand Down

0 comments on commit 4e81892

Please sign in to comment.