From 24c01d57cfb99946eff3af7ec62b71ae6ec72ed8 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 8 Jul 2021 15:12:30 -0700 Subject: imports: sort imports everywhere in Spack (#24695) * fix remaining flake8 errors * imports: sort imports everywhere in Spack We enabled import order checking in #23947, but fixing things manually drives people crazy. This used `spack style --fix --all` from #24071 to automatically sort everything in Spack so PR submitters won't have to deal with it. This should go in after #24071, as it assumes we're using `isort`, not `flake8-import-order` to order things. `isort` seems to be more flexible and allows `llnl` mports to be in their own group before `spack` ones, so this seems like a good switch. --- var/spack/repos/builtin.mock/packages/extension2/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var/spack/repos/builtin.mock/packages/extension2/package.py') diff --git a/var/spack/repos/builtin.mock/packages/extension2/package.py b/var/spack/repos/builtin.mock/packages/extension2/package.py index 95998523b1..4b661e0d55 100644 --- a/var/spack/repos/builtin.mock/packages/extension2/package.py +++ b/var/spack/repos/builtin.mock/packages/extension2/package.py @@ -3,9 +3,10 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -from spack import * import os.path +from spack import * + class Extension2(Package): """A package which extends another package. It also depends on another -- cgit v1.2.3-60-g2f50