Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ab3c10

Browse files
authored
Merge pull request#2050 from python-gitlab/jlvillal/more_pylint
chore: enable 'consider-using-sys-exit' pylint check
2 parents00aec96 +0afcc3e commit9ab3c10

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎gitlab/v4/cli.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:
394394

395395
print(yaml.safe_dump(d,default_flow_style=False))
396396
exceptImportError:
397-
exit(
397+
sys.exit(
398398
"PyYaml is not installed.\n"
399399
"Install it with `pip install PyYaml` "
400400
"to use the yaml output feature"
@@ -415,7 +415,7 @@ def display_list(
415415
)
416416
)
417417
exceptImportError:
418-
exit(
418+
sys.exit(
419419
"PyYaml is not installed.\n"
420420
"Install it with `pip install PyYaml` "
421421
"to use the yaml output feature"

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ disable = [
5252
"attribute-defined-outside-init",
5353
"broad-except",
5454
"consider-using-generator",
55-
"consider-using-sys-exit",
5655
"cyclic-import",
5756
"duplicate-code",
5857
"fixme",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp