Skip to content

Commit

Permalink
chore: enable 'consider-using-sys-exit' pylint check
Browse files Browse the repository at this point in the history
Enable the 'consider-using-sys-exit' pylint check and fix errors
raised.
  • Loading branch information
JohnVillalovos committed Jun 3, 2022
1 parent 00aec96 commit 0afcc3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gitlab/v4/cli.py
Expand Up @@ -394,7 +394,7 @@ def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:

print(yaml.safe_dump(d, default_flow_style=False))
except ImportError:
exit(
sys.exit(
"PyYaml is not installed.\n"
"Install it with `pip install PyYaml` "
"to use the yaml output feature"
Expand All @@ -415,7 +415,7 @@ def display_list(
)
)
except ImportError:
exit(
sys.exit(
"PyYaml is not installed.\n"
"Install it with `pip install PyYaml` "
"to use the yaml output feature"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -52,7 +52,6 @@ disable = [
"attribute-defined-outside-init",
"broad-except",
"consider-using-generator",
"consider-using-sys-exit",
"cyclic-import",
"duplicate-code",
"fixme",
Expand Down

0 comments on commit 0afcc3e

Please sign in to comment.