Commit 50f10266 authored by Benedikt Steinbusch's avatar Benedikt Steinbusch
Browse files

make pylint happy

parent a7530abc
Pipeline #104956 passed with stage
in 13 seconds
......@@ -7,7 +7,7 @@ lint:
before_script:
- pip install pylint
script:
- pylint -j 8 --disable=wrong-import-position,deprecated-lambda setup.py xenv
- pylint setup.py xenv
flake:
before_script:
......
......@@ -59,7 +59,7 @@ def _module_command_lmod(env, argv):
class SwitchEnvironment(ast.NodeTransformer):
"""an AST node transformer that replaces `os.environ` with `env`"""
# pylint: disable-next=invalid-name,no-self-use
# pylint: disable-next=invalid-name
def visit_Attribute(self, node):
"""replace `os.environ` Attribute nodes with `env` Name nodes"""
return ast.copy_location(
......
Supports Markdown
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