Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
atollk committed Jul 14, 2023
1 parent 2f2ae3b commit 1ed46e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def error_code(self) -> str:
def _flake8dir(self, flake8_path):
self.flake8_path = flake8_path

def run_flake8(
self, code: str
) -> List[ReportedMessage]:
def run_flake8(self, code: str) -> List[ReportedMessage]:
(self.flake8_path / "example.py").write_text(textwrap.dedent(code))
args = [f"--select_csm1={self.error_code()}"]
result = self.flake8_path.run_flake8(args)
Expand All @@ -46,9 +44,7 @@ def assert_error_at(
col: int,
) -> None:
error_found = any(
report.line == line
and report.col == col
and report.code == error_code
report.line == line and report.col == col and report.code == error_code
for report in reported_errors
)
if not error_found:
Expand Down

0 comments on commit 1ed46e6

Please sign in to comment.