Switch to settings option used in latest *and* oldest listed version (#25340)
This commit is contained in:
@@ -312,7 +312,7 @@ def run_mypy(mypy_cmd, file_list, args):
|
|||||||
@tool("isort")
|
@tool("isort")
|
||||||
def run_isort(isort_cmd, file_list, args):
|
def run_isort(isort_cmd, file_list, args):
|
||||||
# always run with config from running spack prefix
|
# 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:
|
if not args.fix:
|
||||||
isort_args += ("--check", "--diff")
|
isort_args += ("--check", "--diff")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user