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.