Skip to content

Commit

Permalink
Read config file without interpolation
Browse files Browse the repository at this point in the history
Apply 71907e2 / codespell-project#2545 everywhere.
  • Loading branch information
DimitriPapadopoulos committed Mar 3, 2023
1 parent 22ac85a commit aded04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def parse_options(
# Collect which config files are going to be used
used_cfg_files = []
for cfg_file in cfg_files:
_cfg = configparser.ConfigParser()
_cfg = configparser.ConfigParser(interpolation=None)
_cfg.read(cfg_file)
if _cfg.has_section("codespell"):
used_cfg_files.append(cfg_file)
Expand Down

0 comments on commit aded04f

Please sign in to comment.