From af7105f9ab4812c99f3d8a562b15913c2ccd7190 Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <50263213+MomIsBestFriend@users.noreply.github.com> Date: Sun, 12 Apr 2020 06:30:24 +0300 Subject: [PATCH 1/1] Small nitpicks (#1340) Co-authored-by: MomIsBestFriend <> --- black.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/black.py b/black.py index c9c20df..d9348a3 100644 --- a/black.py +++ b/black.py @@ -423,7 +423,7 @@ def main( write_back = WriteBack.from_configuration(check=check, diff=diff) if target_version: if py36: - err(f"Cannot use both --target-version and --py36") + err("Cannot use both --target-version and --py36") ctx.exit(2) else: versions = set(target_version) @@ -3567,7 +3567,7 @@ def gen_python_files_in_dir( for child in path.iterdir(): # First ignore files matching .gitignore if gitignore.match_file(child.as_posix()): - report.path_ignored(child, f"matches the .gitignore file content") + report.path_ignored(child, "matches the .gitignore file content") continue # Then ignore with `exclude` option. @@ -3591,7 +3591,7 @@ def gen_python_files_in_dir( exclude_match = exclude.search(normalized_path) if exclude_match and exclude_match.group(0): - report.path_ignored(child, f"matches the --exclude regular expression") + report.path_ignored(child, "matches the --exclude regular expression") continue if child.is_dir(): -- 2.39.5