Skip to content

Commit

Permalink
Satisfy linters
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jul 31, 2024
1 parent a690910 commit b31f859
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/darker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def _import_pygments(): # type: ignore
return highlight, TerminalFormatter, PythonLexer


def main( # pylint: disable=too-many-locals,too-many-branches,too-many-statements
def main( # pylint: disable=too-many-locals,too-many-branches,too-many-statements # noqa: C901,PLR0912,PLR0915

Check failure on line 454 in src/darker/__main__.py

View workflow job for this annotation

GitHub Actions / flake8

line too long (112 > 88 characters)
argv: List[str] = None,
) -> int:
"""Parse the command line and reformat and optionally lint each source file
Expand Down Expand Up @@ -555,9 +555,8 @@ def main( # pylint: disable=too-many-locals,too-many-branches,too-many-statemen
rev2_repr = (
"the working tree" if revrange.rev2 == WORKTREE else revrange.rev2
)
raise FileNotFoundError(
f"Path(s) {missing_reprs} do not exist in {rev2_repr}"
)
msg = f"Path(s) {missing_reprs} do not exist in {rev2_repr}"
raise FileNotFoundError(msg)

# These paths are relative to `common_root`:
files_to_process = filter_python_files(paths, common_root, {})
Expand Down

0 comments on commit b31f859

Please sign in to comment.