Skip to content

Commit 3b83d5d

Browse files
nejchJohnVillalovos
authored andcommitted
chore: make linters happy
1 parent 71fca8c commit 3b83d5d

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-
import tarfile
2-
import zipfile
31
import subprocess
42
import sys
3+
import tarfile
4+
import zipfile
55
from pathlib import Path
66

7-
87
import pytest
98

109
from gitlab._version import __title__, __version__
@@ -16,13 +15,13 @@
1615

1716

1817
@pytest.fixture(scope="session")
19-
def build(tmp_path_factory: Path):
18+
def build(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
return temp_dir
2322

2423

25-
def test_sdist_includes_docs_and_tests(build: subprocess.CompletedProcess) -> None:
24+
def test_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
assert readme.isfile()
3635

3736

38-
def test_wheel_excludes_docs_and_tests(build: subprocess.CompletedProcess) -> None:
37+
def test_wheel_excludes_docs_and_tests(build: Path) -> None:
3938
wheel = zipfile.ZipFile(build / WHEEL_FILE)
4039
assert not any(file.startswith((DOCS_DIR, TEST_DIR)) for file in wheel.namelist())

0 commit comments

Comments
 (0)