From 3cadd09f0935b26b2af7844caee094fa3b89a05b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:53:27 +0100 Subject: [PATCH] Fix new CI error `val != ""` can be simplified to `not val` as an empty string is falsey --- codespell_lib/_codespell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index f2c6c44cb66..2556d36e60d 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -588,7 +588,7 @@ def parse_options( cfg_args.append(f"--{key}") # If value is blank, skip. val = config["codespell"][key] - if val != "": + if not val: cfg_args.append(val) # Parse config file options.