summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2022-07-23 20:19:29 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2022-07-31 13:29:20 -0700
commit156af2a60ab61bb8c03fbe23a52d8ee25c504b23 (patch)
treeab083a8843d0e9e55629f3a07924bb20f9cf2ec7 /bin
parent3fa090f49030b36eb1e4038280504ce3cc1e1de0 (diff)
downloadspack-156af2a60ab61bb8c03fbe23a52d8ee25c504b23.tar.gz
spack-156af2a60ab61bb8c03fbe23a52d8ee25c504b23.tar.bz2
spack-156af2a60ab61bb8c03fbe23a52d8ee25c504b23.tar.xz
spack-156af2a60ab61bb8c03fbe23a52d8ee25c504b23.zip
black: clean up noqa comments from most of the code
Many noqa's in the code are no longer necessary now that the column limit is 99 characters. Others can easily be eliminated, and still more can just be made more specific if they do not have to do with line length. The only E501's still in the code are in the tests for `spack.util.path` and the tests for `spack style`.
Diffstat (limited to 'bin')
-rw-r--r--bin/haspywin.py2
-rwxr-xr-xbin/spack4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/haspywin.py b/bin/haspywin.py
index ea08e74d41..ad28fe0863 100644
--- a/bin/haspywin.py
+++ b/bin/haspywin.py
@@ -8,7 +8,7 @@ import sys
def getpywin():
try:
- import win32con # noqa
+ import win32con # noqa: F401
except ImportError:
subprocess.check_call(
[sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"])
diff --git a/bin/spack b/bin/spack
index 45f84242fa..537a6a150e 100755
--- a/bin/spack
+++ b/bin/spack
@@ -82,7 +82,7 @@ except ImportError:
raise
try:
os.remove(argparse_pyc)
- import argparse # noqa
+ import argparse # noqa: F401
except Exception:
msg = ('The file\n\n\t{0}\n\nis corrupted and cannot be deleted by Spack. '
'Either delete it manually or ask some administrator to '
@@ -91,7 +91,7 @@ except ImportError:
sys.exit(1)
-import spack.main # noqa
+import spack.main # noqa: E402
# Once we've set up the system path, run the spack main method
if __name__ == "__main__":