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

Commit3b83d5d

Browse files
nejchJohnVillalovos
authored andcommitted
chore: make linters happy
1 parent71fca8c commit3b83d5d

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

‎docs/gl_objects/job_token_scope.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Update the job token scope settings::
3636
..warning::
3737

3838
As you can see above, the attributes you receive from and send to the GitLab API
39-
are not consistent. GitLab returns `inbound_enabled` and `outbound_enabled`,
40-
but expects `enabled`, which only refers to the inbound scope. This is important
39+
are not consistent. GitLab returns ``inbound_enabled`` and ``outbound_enabled``,
40+
but expects ``enabled``, which only refers to the inbound scope. This is important
4141
when accessing and updating these attributes.
4242

4343
Or update the job token scope settings directly::

‎gitlab/v4/objects/appearance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def update(
3939
self,
4040
id:Optional[Union[str,int]]=None,
4141
new_data:Optional[Dict[str,Any]]=None,
42-
**kwargs:Any
42+
**kwargs:Any,
4343
)->Dict[str,Any]:
4444
"""Update an object on the server.
4545

‎gitlab/v4/objects/labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def update( # type: ignore
7070
self,
7171
name:Optional[str],
7272
new_data:Optional[Dict[str,Any]]=None,
73-
**kwargs:Any
73+
**kwargs:Any,
7474
)->Dict[str,Any]:
7575
"""Update a Label on the server.
7676
@@ -136,7 +136,7 @@ def update( # type: ignore
136136
self,
137137
name:Optional[str],
138138
new_data:Optional[Dict[str,Any]]=None,
139-
**kwargs:Any
139+
**kwargs:Any,
140140
)->Dict[str,Any]:
141141
"""Update a Label on the server.
142142

‎gitlab/v4/objects/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def update(
9494
self,
9595
id:Optional[Union[str,int]]=None,
9696
new_data:Optional[Dict[str,Any]]=None,
97-
**kwargs:Any
97+
**kwargs:Any,
9898
)->Dict[str,Any]:
9999
"""Update an object on the server.
100100

‎tests/smoke/test_dists.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
importtarfile
2-
importzipfile
31
importsubprocess
42
importsys
3+
importtarfile
4+
importzipfile
55
frompathlibimportPath
66

7-
87
importpytest
98

109
fromgitlab._versionimport__title__,__version__
@@ -16,13 +15,13 @@
1615

1716

1817
@pytest.fixture(scope="session")
19-
defbuild(tmp_path_factory:Path):
18+
defbuild(tmp_path_factory:pytest.TempPathFactory):
2019
temp_dir=tmp_path_factory.mktemp("build")
2120
subprocess.run([sys.executable,"-m","build","--outdir",temp_dir],check=True)
2221
returntemp_dir
2322

2423

25-
deftest_sdist_includes_docs_and_tests(build:subprocess.CompletedProcess)->None:
24+
deftest_sdist_includes_docs_and_tests(build:Path)->None:
2625
sdist=tarfile.open(build/SDIST_FILE,"r:gz")
2726
sdist_dir=f"{__title__}-{__version__}"
2827

@@ -35,6 +34,6 @@ def test_sdist_includes_docs_and_tests(build: subprocess.CompletedProcess) -> No
3534
assertreadme.isfile()
3635

3736

38-
deftest_wheel_excludes_docs_and_tests(build:subprocess.CompletedProcess)->None:
37+
deftest_wheel_excludes_docs_and_tests(build:Path)->None:
3938
wheel=zipfile.ZipFile(build/WHEEL_FILE)
4039
assertnotany(file.startswith((DOCS_DIR,TEST_DIR))forfileinwheel.namelist())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp