Skip to content

Commit b5f43c8

Browse files
committed
chore: make lint happy
1 parent 732e49c commit b5f43c8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

gitlab/config.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def _env_config() -> List[str]:
3636

3737
HELPER_PREFIX = "helper:"
3838

39-
HELPER_ATTRIBUTES = [
40-
"job_token", "http_password", "private_token", "oauth_token"
41-
]
39+
HELPER_ATTRIBUTES = ["job_token", "http_password", "private_token", "oauth_token"]
4240

4341
class ConfigError(Exception):
4442
pass
@@ -202,11 +200,11 @@ def __init__(
202200
pass
203201

204202
def _get_values_from_helper(self):
205-
"""Update attributes, which may get values from an external helper program
206-
"""
203+
"""Update attributes, which may get values from an external helper program"""
207204
for attr in HELPER_ATTRIBUTES:
208205
value = getattr(self, attr)
209-
if isinstance(value, str) and value.lower().strip().startswith(HELPER_PREFIX):
206+
_value_lower = value.lower().strip()
207+
if isinstance(value, str) and _value_lower.startswith(HELPER_PREFIX):
210208
helper = value[len(HELPER_PREFIX) :].strip()
211209
value = subprocess.check_output([helper]).decode("utf-8").strip()
212210
setattr(self, attr, value)

0 commit comments

Comments
 (0)