Switch to settings option used in latest *and* oldest listed version (#25340)

This commit is contained in:
Tamara Dahlgren 2021-08-11 00:30:22 -07:00 committed by GitHub
parent e89f2c0e91
commit fb8c954e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ def run_mypy(mypy_cmd, file_list, args):
@tool("isort")
def run_isort(isort_cmd, file_list, args):
# always run with config from running spack prefix
isort_args = ("--settings-file", os.path.join(spack.paths.prefix, "pyproject.toml"))
isort_args = ("--settings-path", os.path.join(spack.paths.prefix, "pyproject.toml"))
if not args.fix:
isort_args += ("--check", "--diff")