Skip to content

Commit

Permalink
fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-bagerard committed Jul 3, 2022
1 parent 24d0e39 commit bbf42a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flake8_in_file_ignores/flake8_plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import glob
import os
from typing import List

# metadata
Expand Down Expand Up @@ -43,7 +42,9 @@ def parse_ifi_error_codes(line: str) -> str:
to extract the code
"""
if IFI_FULL_TAG not in line:
raise Exception(f"flake8-in-file-ignores plugin expects to find `{IFI_FULL_TAG}`, which is different from what it found on line `{line}`")
raise Exception(
f"flake8-in-file-ignores plugin expects to find `{IFI_FULL_TAG}`, which is different from what it found on line `{line}`"
)

line = line.replace(IFI_FULL_TAG, "")
return line.replace(" ", "").strip()
Expand Down

0 comments on commit bbf42a0

Please sign in to comment.