summaryrefslogtreecommitdiff
path: root/lib/spack/spack/util/spack_yaml.py
diff options
context:
space:
mode:
authorTodd Gamblin <gamblin2@llnl.gov>2021-07-08 15:12:30 -0700
committerGitHub <noreply@github.com>2021-07-08 22:12:30 +0000
commit24c01d57cfb99946eff3af7ec62b71ae6ec72ed8 (patch)
treea9cbe1b7ef49d14c55fada060476b22fa57ef95e /lib/spack/spack/util/spack_yaml.py
parent620836a80960396487b5eeba41c2a57c0b4674d2 (diff)
downloadspack-24c01d57cfb99946eff3af7ec62b71ae6ec72ed8.tar.gz
spack-24c01d57cfb99946eff3af7ec62b71ae6ec72ed8.tar.bz2
spack-24c01d57cfb99946eff3af7ec62b71ae6ec72ed8.tar.xz
spack-24c01d57cfb99946eff3af7ec62b71ae6ec72ed8.zip
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.
Diffstat (limited to 'lib/spack/spack/util/spack_yaml.py')
-rw-r--r--lib/spack/spack/util/spack_yaml.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/spack/spack/util/spack_yaml.py b/lib/spack/spack/util/spack_yaml.py
index 24eea88b77..a67b6491f8 100644
--- a/lib/spack/spack/util/spack_yaml.py
+++ b/lib/spack/spack/util/spack_yaml.py
@@ -17,17 +17,15 @@ import re
import sys
from typing import List # novm
-from ordereddict_backport import OrderedDict
-from six import string_types, StringIO
-
import ruamel.yaml as yaml
-from ruamel.yaml import RoundTripLoader, RoundTripDumper
+from ordereddict_backport import OrderedDict
+from ruamel.yaml import RoundTripDumper, RoundTripLoader
+from six import StringIO, string_types
-from llnl.util.tty.color import colorize, clen, cextra
+from llnl.util.tty.color import cextra, clen, colorize
import spack.error
-
if sys.version_info >= (3, 3):
from collections.abc import Mapping # novm
else: