From: MomIsBestFriend <50263213+MomIsBestFriend@users.noreply.github.com> Date: Sun, 12 Apr 2020 03:30:24 +0000 (+0300) Subject: Small nitpicks (#1340) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/af7105f9ab4812c99f3d8a562b15913c2ccd7190?hp=959848c17639bfc646128f6b582c5858164a5001 Small nitpicks (#1340) Co-authored-by: MomIsBestFriend <> --- 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():