Skip to content
Snippets Groups Projects
Commit 50f10266 authored by Benedikt Steinbusch's avatar Benedikt Steinbusch
Browse files

make pylint happy

parent a7530abc
No related branches found
No related tags found
No related merge requests found
Pipeline #104956 passed
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment