Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hps-public
xenv
Commits
50f10266
Commit
50f10266
authored
Jul 07, 2022
by
Benedikt Steinbusch
Browse files
make pylint happy
parent
a7530abc
Pipeline
#104956
passed with stage
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
50f10266
...
...
@@ -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
:
...
...
xenv/modules.py
View file @
50f10266
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment