Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Nov 14, 2023
1 parent 805b584 commit 1e8dcdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/python/pyflyby/_importstmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


import ast
import subprocess
from collections import namedtuple
from functools import total_ordering

Expand All @@ -17,8 +16,8 @@
longest_common_prefix)

from black import (find_pyproject_toml, format_str,
parse_pyproject_toml, format_str,
TargetVersion, FileMode as Mode)
parse_pyproject_toml, TargetVersion,
FileMode as Mode)


def read_black_config():
Expand Down Expand Up @@ -550,7 +549,7 @@ def run_black(src_contents: str, params) -> str:
}
bad_target_versions = target_versions_in - set(all_target_versions)
if bad_target_versions:
raise ConfigurationError(
raise ValueError(
f"Invalid target version(s) {bad_target_versions}"
)
mode["target_versions"] = {
Expand Down

0 comments on commit 1e8dcdc

Please sign in to comment.