Commit 44fbdf5b authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Fix CI issues

parent f3bf3a59
Pipeline #67046 passed with stage
in 11 seconds
job-flake8-2:
image: gitlab-registry.mpcdf.mpg.de/mpcdf/osc-plugins/python2:flake8
script:
- flake8 --filename=*.py --count --ignore=E501 .
- flake8 --filename=*.py --count --ignore=E501,W503 .
job-flake8-3:
image: gitlab-registry.mpcdf.mpg.de/mpcdf/osc-plugins/python3:flake8
script:
- flake8 --filename=*.py --count --ignore=E501 .
- flake8 --filename=*.py --count --ignore=E501,W503 .
......@@ -80,8 +80,8 @@ def do_mpcdf_enable_repositories(self, subcmd, opts, *args):
print("Removing attribute", attribute_name, "from package")
mpcdf_common.remove_attribute(api_url, project, package, attribute_name)
set_or_remove(opts.mpi_modules, "MPCDF:mpi_modules")
set_or_remove(opts.cuda_modules, "MPCDF:cuda_modules")
set_or_remove(opts.mpi_modules, "MPCDF:mpi_modules")
set_or_remove(opts.cuda_modules, "MPCDF:cuda_modules")
set_or_remove(opts.compiler_modules, "MPCDF:compiler_modules")
if opts.recreate or opts.set or opts.disable:
......
......@@ -74,9 +74,9 @@ def do_mpcdf_info(self, subcmd, opts, *args):
return ""
print(" " + pkg_name_fmt.format(package), "--set=" + (",".join(enabled_repos)),
subset("--compiler-modules", "MPCDF:compiler_modules") +
subset("--mpi-modules", "MPCDF:mpi_modules") +
subset("--cuda-modules", "MPCDF:cuda_modules"))
subset("--compiler-modules", "MPCDF:compiler_modules")
+ subset("--mpi-modules", "MPCDF:mpi_modules")
+ subset("--cuda-modules", "MPCDF:cuda_modules"))
print()
if unmanaged:
......
......@@ -39,6 +39,8 @@ def do_mpcdf_push(self, subcmd, opts, *args):
${cmd_option_list}
"""
import sys
if len(args) < 1:
raise osc.oscerr.WrongArgs("Not enough arguments")
elif len(args) == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment