| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 71fca8c commit 3b83d5d
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,8 +36,8 @@ Update the job token scope settings:: | |||
| 36 | 36 | .. warning:: | |
| 37 | 37 | ||
| 38 | 38 | 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 | ||
| 41 | 41 | when accessing and updating these attributes. | |
| 42 | 42 | ||
| 43 | 43 | Or update the job token scope settings directly:: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ def update( | |||
| 39 | 39 | self, | |
| 40 | 40 | id: Optional[Union[str, int]] = None, | |
| 41 | 41 | new_data: Optional[Dict[str, Any]] = None, | |
| 42 | - **kwargs: Any | ||
| 42 | + **kwargs: Any, | ||
| 43 | 43 | ) -> Dict[str, Any]: | |
| 44 | 44 | """Update an object on the server. | |
| 45 | 45 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,7 @@ def update( # type: ignore | |||
| 70 | 70 | self, | |
| 71 | 71 | name: Optional[str], | |
| 72 | 72 | new_data: Optional[Dict[str, Any]] = None, | |
| 73 | - **kwargs: Any | ||
| 73 | + **kwargs: Any, | ||
| 74 | 74 | ) -> Dict[str, Any]: | |
| 75 | 75 | """Update a Label on the server. | |
| 76 | 76 | ||
@@ -136,7 +136,7 @@ def update( # type: ignore | |||
| 136 | 136 | self, | |
| 137 | 137 | name: Optional[str], | |
| 138 | 138 | new_data: Optional[Dict[str, Any]] = None, | |
| 139 | - **kwargs: Any | ||
| 139 | + **kwargs: Any, | ||
| 140 | 140 | ) -> Dict[str, Any]: | |
| 141 | 141 | """Update a Label on the server. | |
| 142 | 142 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,7 +94,7 @@ def update( | |||
| 94 | 94 | self, | |
| 95 | 95 | id: Optional[Union[str, int]] = None, | |
| 96 | 96 | new_data: Optional[Dict[str, Any]] = None, | |
| 97 | - **kwargs: Any | ||
| 97 | + **kwargs: Any, | ||
| 98 | 98 | ) -> Dict[str, Any]: | |
| 99 | 99 | """Update an object on the server. | |
| 100 | 100 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,9 @@ | |||
| 1 | - import tarfile | ||
| 2 | - import zipfile | ||
| 3 | 1 | import subprocess | |
| 4 | 2 | import sys | |
| 3 | + import tarfile | ||
| 4 | + import zipfile | ||
| 5 | 5 | from pathlib import Path | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | 7 | import pytest | |
| 9 | 8 | ||
| 10 | 9 | from gitlab._version import __title__, __version__ | |
@@ -16,13 +15,13 @@ | |||
| 16 | 15 | ||
| 17 | 16 | ||
| 18 | 17 | @pytest.fixture(scope="session") | |
| 19 | - def build(tmp_path_factory: Path): | ||
| 18 | + def build(tmp_path_factory: pytest.TempPathFactory): | ||
| 20 | 19 | temp_dir = tmp_path_factory.mktemp("build") | |
| 21 | 20 | subprocess.run([sys.executable, "-m", "build", "--outdir", temp_dir], check=True) | |
| 22 | 21 | return temp_dir | |
| 23 | 22 | ||
| 24 | 23 | ||
| 25 | - def test_sdist_includes_docs_and_tests(build: subprocess.CompletedProcess) -> None: | ||
| 24 | + def test_sdist_includes_docs_and_tests(build: Path) -> None: | ||
| 26 | 25 | sdist = tarfile.open(build / SDIST_FILE, "r:gz") | |
| 27 | 26 | sdist_dir = f"{__title__}-{__version__}" | |
| 28 | 27 | ||
@@ -35,6 +34,6 @@ def test_sdist_includes_docs_and_tests(build: subprocess.CompletedProcess) -> No | |||
| 35 | 34 | assert readme.isfile() | |
| 36 | 35 | ||
| 37 | 36 | ||
| 38 | - def test_wheel_excludes_docs_and_tests(build: subprocess.CompletedProcess) -> None: | ||
| 37 | + def test_wheel_excludes_docs_and_tests(build: Path) -> None: | ||
| 39 | 38 | wheel = zipfile.ZipFile(build / WHEEL_FILE) | |
| 40 | 39 | assert not any(file.startswith((DOCS_DIR, TEST_DIR)) for file in wheel.namelist()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments