From fb8c954e2ea2e4827ff9930838d7afdb85724f31 Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Wed, 11 Aug 2021 00:30:22 -0700 Subject: Switch to settings option used in latest *and* oldest listed version (#25340) --- lib/spack/spack/cmd/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/style.py b/lib/spack/spack/cmd/style.py index b296126116..eb95904dfb 100644 --- a/lib/spack/spack/cmd/style.py +++ b/lib/spack/spack/cmd/style.py @@ -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") -- cgit v1.2.3-70-g09d2