Skip to content

Commit

Permalink
Update green/config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut authored Nov 12, 2024
1 parent 2d95005 commit df3d550
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion green/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ def getConfig( # pragma: no cover

cwd = pathlib.Path.cwd()
# Medium priority
config_files = [] if not supports_tomllib else ["pyproject.toml"]
config_files = ["pyproject.toml", "setup.cfg", ".green"]
if not supports_tomllib:
config_files.remove("pyproject.toml")
for cfg_file in config_files + ["setup.cfg", ".green"]:
config_path = cwd / cfg_file
if config_path.is_file():
Expand Down

0 comments on commit df3d550

Please sign in to comment.