Skip to content

Commit

Permalink
Extend line width to 120 in isort
Browse files Browse the repository at this point in the history
  • Loading branch information
appolloford committed Oct 16, 2023
1 parent 13a3e94 commit 6693ec3
Show file tree
Hide file tree
Showing 84 changed files with 119 additions and 249 deletions.
4 changes: 1 addition & 3 deletions easybuild/easyblocks/a/aomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
from easybuild.tools.config import build_option
from easybuild.tools.filetools import move_file, remove_file
from easybuild.tools.modules import get_software_root
from easybuild.tools.systemtools import (AARCH64, POWER, X86_64,
get_cpu_architecture,
get_shared_lib_ext)
from easybuild.tools.systemtools import AARCH64, POWER, X86_64, get_cpu_architecture, get_shared_lib_ext

AOMP_ALL_COMPONENTS = ['roct', 'rocr', 'project', 'libdevice', 'openmp',
'extras', 'pgmath', 'flang', 'flang_runtime', 'comgr',
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/a/atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (AMD, INTEL, get_cpu_speed,
get_cpu_vendor, get_shared_lib_ext)
from easybuild.tools.systemtools import AMD, INTEL, get_cpu_speed, get_cpu_vendor, get_shared_lib_ext


class EB_ATLAS(ConfigureMake):
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/b/bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (apply_regex_substitutions, copy_file,
which)
from easybuild.tools.filetools import apply_regex_substitutions, copy_file, which
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/b/binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
from easybuild.tools.filetools import apply_regex_substitutions, copy_file
from easybuild.tools.modules import get_software_libdir, get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (RISCV, get_cpu_family,
get_shared_lib_ext)
from easybuild.tools.systemtools import RISCV, get_cpu_family, get_shared_lib_ext
from easybuild.tools.utilities import nub


Expand Down
8 changes: 3 additions & 5 deletions easybuild/easyblocks/b/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import ERROR
from easybuild.tools.filetools import (apply_regex_substitutions, read_file,
symlink, which, write_file)
from easybuild.tools.filetools import apply_regex_substitutions, read_file, symlink, which, write_file
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (AARCH64, POWER, UNKNOWN,
get_cpu_architecture,
get_glibc_version, get_shared_lib_ext)
from easybuild.tools.systemtools import (AARCH64, POWER, UNKNOWN, get_cpu_architecture, get_glibc_version,
get_shared_lib_ext)


class EB_Boost(EasyBlock):
Expand Down
4 changes: 1 addition & 3 deletions easybuild/easyblocks/b/bwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
from easybuild.easyblocks.generic.makecp import MakeCp
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (adjust_permissions,
apply_regex_substitutions, change_dir,
copy_file, write_file)
from easybuild.tools.filetools import adjust_permissions, apply_regex_substitutions, change_dir, copy_file, write_file
from easybuild.tools.modules import get_software_root


Expand Down
6 changes: 2 additions & 4 deletions easybuild/easyblocks/c/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@
from easybuild.tools.build_log import EasyBuildError, print_warning
from easybuild.tools.config import build_option
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import (apply_regex_substitutions, change_dir,
mkdir, which)
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, mkdir, which
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (AARCH32, AARCH64, POWER, X86_64,
get_cpu_architecture, get_os_name,
from easybuild.tools.systemtools import (AARCH32, AARCH64, POWER, X86_64, get_cpu_architecture, get_os_name,
get_os_version, get_shared_lib_ext)

# List of all possible build targets for Clang
Expand Down
4 changes: 1 addition & 3 deletions easybuild/easyblocks/c/clang_aomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError, print_msg, print_warning
from easybuild.tools.modules import get_software_root
from easybuild.tools.systemtools import (AARCH64, POWER, X86_64,
get_cpu_architecture,
get_shared_lib_ext)
from easybuild.tools.systemtools import AARCH64, POWER, X86_64, get_cpu_architecture, get_shared_lib_ext

# Default AMD GPU architectures to build for
#
Expand Down
4 changes: 1 addition & 3 deletions easybuild/easyblocks/c/comsol.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
import easybuild.tools.environment as env
from easybuild.easyblocks.generic.packedbinary import PackedBinary
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (adjust_permissions, copy_file,
find_flexlm_license, read_file,
write_file)
from easybuild.tools.filetools import adjust_permissions, copy_file, find_flexlm_license, read_file, write_file
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import get_shared_lib_ext
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/c/cp2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import (change_dir, copy_dir, copy_file, mkdir,
write_file)
from easybuild.tools.filetools import change_dir, copy_dir, copy_file, mkdir, write_file
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import get_avail_core_count
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/c/crispr_dav.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@

from easybuild.easyblocks.generic.binary import Binary
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (apply_regex_substitutions, back_up_file,
write_file)
from easybuild.tools.filetools import apply_regex_substitutions, back_up_file, write_file
from easybuild.tools.modules import get_software_root


Expand Down
10 changes: 3 additions & 7 deletions easybuild/easyblocks/c/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import IGNORE
from easybuild.tools.filetools import (adjust_permissions, change_dir,
copy_dir, expand_glob_paths,
patch_perl_script_autoflush,
remove_file, symlink, which, write_file)
from easybuild.tools.filetools import (adjust_permissions, change_dir, copy_dir, expand_glob_paths,
patch_perl_script_autoflush, remove_file, symlink, which, write_file)
from easybuild.tools.run import run_cmd, run_cmd_qa
from easybuild.tools.systemtools import (AARCH64, POWER, X86_64,
get_cpu_architecture,
get_shared_lib_ext)
from easybuild.tools.systemtools import AARCH64, POWER, X86_64, get_cpu_architecture, get_shared_lib_ext

# Wrapper script definition
WRAPPER_TEMPLATE = """#!/bin/sh
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/c/cudacompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError, print_warning
from easybuild.tools.config import IGNORE, build_option
from easybuild.tools.filetools import (copy_file, find_glob_pattern, mkdir,
symlink, which)
from easybuild.tools.filetools import copy_file, find_glob_pattern, mkdir, symlink, which
from easybuild.tools.run import run_cmd


Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/c/cudnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
from easybuild.easyblocks.generic.tarball import Tarball
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.systemtools import (AARCH64, POWER, X86_64,
get_cpu_architecture)
from easybuild.tools.systemtools import AARCH64, POWER, X86_64, get_cpu_architecture


class EB_cuDNN(Tarball):
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/d/dm_reverb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"""
import os

from easybuild.easyblocks.generic.pythonpackage import (PIP_INSTALL_CMD,
PythonPackage)
from easybuild.easyblocks.generic.pythonpackage import PIP_INSTALL_CMD, PythonPackage
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import mkdir, remove_dir
Expand Down
6 changes: 2 additions & 4 deletions easybuild/easyblocks/e/easybuildmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
import sys
from collections import OrderedDict

from easybuild.easyblocks.generic.pythonpackage import (PythonPackage,
det_pip_version)
from easybuild.easyblocks.generic.pythonpackage import PythonPackage, det_pip_version
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (apply_regex_substitutions, change_dir,
read_file)
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, read_file
from easybuild.tools.modules import get_software_root_env_var_name
from easybuild.tools.utilities import flatten

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/e/eigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.tools import LooseVersion
from easybuild.tools.filetools import (apply_regex_substitutions, copy_dir,
copy_file, mkdir)
from easybuild.tools.filetools import apply_regex_substitutions, copy_dir, copy_file, mkdir


class EB_Eigen(CMakeMake):
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/f/faststructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@

from easybuild.easyblocks.generic.cmdcp import CmdCp
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.filetools import (adjust_permissions, change_dir,
read_file, write_file)
from easybuild.tools.filetools import adjust_permissions, change_dir, read_file, write_file
from easybuild.tools.run import run_cmd


Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/f/ferret.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (apply_regex_substitutions, change_dir,
copy_file)
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, copy_file
from easybuild.tools.modules import get_software_root


Expand Down
5 changes: 2 additions & 3 deletions easybuild/easyblocks/f/fftw.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.modules import get_software_version
from easybuild.tools.systemtools import (AARCH32, AARCH64, POWER, X86_64,
get_cpu_architecture,
get_cpu_features, get_shared_lib_ext)
from easybuild.tools.systemtools import (AARCH32, AARCH64, POWER, X86_64, get_cpu_architecture, get_cpu_features,
get_shared_lib_ext)
from easybuild.tools.toolchain.compiler import OPTARCH_GENERIC
from easybuild.tools.utilities import nub

Expand Down
11 changes: 4 additions & 7 deletions easybuild/easyblocks/g/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.filetools import (apply_regex_substitutions, change_dir,
copy_file, move_file, read_file,
symlink, which, write_file)
from easybuild.tools.filetools import (apply_regex_substitutions, change_dir, copy_file, move_file, read_file, symlink,
which, write_file)
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (RISCV, check_os_dependency,
get_cpu_architecture, get_cpu_family,
get_gcc_version, get_os_name,
get_os_type, get_shared_lib_ext)
from easybuild.tools.systemtools import (RISCV, check_os_dependency, get_cpu_architecture, get_cpu_family,
get_gcc_version, get_os_name, get_os_type, get_shared_lib_ext)
from easybuild.tools.toolchain.compiler import OPTARCH_GENERIC
from easybuild.tools.utilities import nub

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/g/gctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
from easybuild.framework.easyblock import EasyBlock
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (adjust_permissions, copy_file, mkdir,
symlink, write_file)
from easybuild.tools.filetools import adjust_permissions, copy_file, mkdir, symlink, write_file
from easybuild.tools.modules import get_software_root


Expand Down
9 changes: 3 additions & 6 deletions easybuild/easyblocks/g/gromacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError, print_warning
from easybuild.tools.config import build_option
from easybuild.tools.filetools import (copy_dir, find_backup_name_candidate,
remove_dir, which)
from easybuild.tools.modules import (get_software_libdir, get_software_root,
get_software_version)
from easybuild.tools.filetools import copy_dir, find_backup_name_candidate, remove_dir, which
from easybuild.tools.modules import get_software_libdir, get_software_root, get_software_version
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import (X86_64, get_cpu_architecture,
get_cpu_features, get_shared_lib_ext)
from easybuild.tools.systemtools import X86_64, get_cpu_architecture, get_cpu_features, get_shared_lib_ext
from easybuild.tools.toolchain.compiler import OPTARCH_GENERIC
from easybuild.tools.version import VERBOSE_VERSION as EASYBUILD_VERSION

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/generic/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
from easybuild.framework.easyblock import EasyBlock
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (adjust_permissions, copy_file, mkdir,
remove_dir)
from easybuild.tools.filetools import adjust_permissions, copy_file, mkdir, remove_dir
from easybuild.tools.run import run_cmd

PREPEND_TO_PATH_DEFAULT = ['']
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/generic/cargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
from easybuild.framework.extensioneasyblock import ExtensionEasyBlock
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.filetools import (change_dir, compute_checksum,
extract_file, write_file)
from easybuild.tools.filetools import change_dir, compute_checksum, extract_file, write_file
from easybuild.tools.run import run_cmd
from easybuild.tools.toolchain.compiler import OPTARCH_GENERIC

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/generic/cmakemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
from easybuild.tools.build_log import EasyBuildError, print_warning
from easybuild.tools.config import build_option
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import (change_dir, create_unused_dir, mkdir,
which)
from easybuild.tools.filetools import change_dir, create_unused_dir, mkdir, which
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import get_shared_lib_ext
Expand Down
5 changes: 2 additions & 3 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import print_warning
from easybuild.tools.config import build_option, source_paths
from easybuild.tools.filetools import (CHECKSUM_TYPE_SHA256,
adjust_permissions, compute_checksum,
download_file, read_file, remove_file)
from easybuild.tools.filetools import (CHECKSUM_TYPE_SHA256, adjust_permissions, compute_checksum, download_file,
read_file, remove_file)
from easybuild.tools.run import run_cmd

# string that indicates that a configure script was generated by Autoconf
Expand Down
4 changes: 1 addition & 3 deletions easybuild/easyblocks/generic/intelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
from easybuild.framework.easyconfig.types import ensure_iterable_license_specs
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import (adjust_permissions, find_flexlm_license,
mkdir, read_file, remove_file,
write_file)
from easybuild.tools.filetools import adjust_permissions, find_flexlm_license, mkdir, read_file, remove_file, write_file
from easybuild.tools.run import run_cmd

# different supported activation types (cfr. Intel documentation)
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/generic/juliabundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
import os

from easybuild.easyblocks.generic.bundle import Bundle
from easybuild.easyblocks.generic.juliapackage import (
EXTS_FILTER_JULIA_PACKAGES, JuliaPackage)
from easybuild.easyblocks.generic.juliapackage import EXTS_FILTER_JULIA_PACKAGES, JuliaPackage
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.modules import get_software_root

Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/generic/perlmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
import os

from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.easyblocks.perl import (EXTS_FILTER_PERL_MODULES,
get_major_perl_version, get_site_suffix)
from easybuild.easyblocks.perl import EXTS_FILTER_PERL_MODULES, get_major_perl_version, get_site_suffix
from easybuild.framework.easyconfig import CUSTOM
from easybuild.framework.extensioneasyblock import ExtensionEasyBlock
from easybuild.tools.build_log import EasyBuildError
Expand Down
5 changes: 2 additions & 3 deletions easybuild/easyblocks/generic/pythonbundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@

import easybuild.tools.environment as env
from easybuild.easyblocks.generic.bundle import Bundle
from easybuild.easyblocks.generic.pythonpackage import (
EBPYTHONPREFIXES, EXTS_FILTER_PYTHON_PACKAGES, PythonPackage,
get_pylibdirs, pick_python_cmd)
from easybuild.easyblocks.generic.pythonpackage import (EBPYTHONPREFIXES, EXTS_FILTER_PYTHON_PACKAGES, PythonPackage,
get_pylibdirs, pick_python_cmd)
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import which
from easybuild.tools.modules import get_software_root
Expand Down
9 changes: 3 additions & 6 deletions easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,16 @@

import easybuild.tools.environment as env
from easybuild.base import fancylogger
from easybuild.easyblocks.python import (EBPYTHONPREFIXES,
EXTS_FILTER_PYTHON_PACKAGES)
from easybuild.easyblocks.python import EBPYTHONPREFIXES, EXTS_FILTER_PYTHON_PACKAGES
from easybuild.framework.easyconfig import CUSTOM
from easybuild.framework.easyconfig.default import DEFAULT_CONFIG
from easybuild.framework.easyconfig.templates import TEMPLATE_CONSTANTS
from easybuild.framework.extensioneasyblock import ExtensionEasyBlock
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError, print_msg
from easybuild.tools.config import build_option
from easybuild.tools.filetools import (change_dir, mkdir, remove_dir, symlink,
which)
from easybuild.tools.hooks import (BUILD_STEP, CONFIGURE_STEP, INSTALL_STEP,
TEST_STEP)
from easybuild.tools.filetools import change_dir, mkdir, remove_dir, symlink, which
from easybuild.tools.hooks import BUILD_STEP, CONFIGURE_STEP, INSTALL_STEP, TEST_STEP
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd, subprocess_popen_text
from easybuild.tools.utilities import nub
Expand Down

0 comments on commit 6693ec3

Please sign in to comment.