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

make pylint happy

parent a7530abc
Branches master
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ lint: ...@@ -7,7 +7,7 @@ lint:
before_script: before_script:
- pip install pylint - pip install pylint
script: script:
- pylint -j 8 --disable=wrong-import-position,deprecated-lambda setup.py xenv - pylint setup.py xenv
flake: flake:
before_script: before_script:
......
...@@ -59,7 +59,7 @@ def _module_command_lmod(env, argv): ...@@ -59,7 +59,7 @@ def _module_command_lmod(env, argv):
class SwitchEnvironment(ast.NodeTransformer): class SwitchEnvironment(ast.NodeTransformer):
"""an AST node transformer that replaces `os.environ` with `env`""" """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): def visit_Attribute(self, node):
"""replace `os.environ` Attribute nodes with `env` Name nodes""" """replace `os.environ` Attribute nodes with `env` Name nodes"""
return ast.copy_location( 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