Skip to content

Commit 1ae75d7

Browse files
[pre-commit.ci] pre-commit autoupdate (#601)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.6...v0.9.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 365836f commit 1ae75d7

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: debug-statements
2323
language_version: python3
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.8.6
25+
rev: v0.9.2
2626
hooks:
2727
# Run the linter
2828
- id: ruff

grayskull/base/github.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def verify_github_repo_tag(git_url, tag):
4444
if isinstance(response.json(), list):
4545
print_msg(
4646
f"""Found multiple tags matching requested {tag}, possible
47-
matches: {[i['ref'].split('/')[-1] for i in response.json()]}"""
47+
matches: {[i["ref"].split("/")[-1] for i in response.json()]}"""
4848
)
4949
return False
5050
elif response.json()["ref"].split("/")[-1] == tag:
@@ -147,7 +147,6 @@ def get_git_current_user() -> str:
147147
f" Exception: {err}"
148148
)
149149
print_msg(
150-
f"Using default recipe maintainer:"
151-
f" {Fore.LIGHTMAGENTA_EX}AddYourGitHubIdHere"
150+
f"Using default recipe maintainer: {Fore.LIGHTMAGENTA_EX}AddYourGitHubIdHere"
152151
)
153152
return "AddYourGitHubIdHere"

grayskull/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ def main(args=None):
298298

299299
if args.grayskull_power:
300300
print(
301-
f"{Fore.BLUE}By the power of Grayskull...\n"
302-
f"{Style.BRIGHT}I have the power!"
301+
f"{Fore.BLUE}By the power of Grayskull...\n{Style.BRIGHT}I have the power!"
303302
)
304303
return
305304

grayskull/strategy/cran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def scrap_main_page_cran_find_latest_package(
205205
def scrap_cran_archive_page_for_package_folder_url(cran_url: str, pkg_name: str):
206206
for url_a in get_webpage(cran_url).findAll("a"):
207207
if url_a.get_text().strip().lower() == f"{pkg_name.strip().lower()}/":
208-
return f'{cran_url}/{url_a.get("href")}'
208+
return f"{cran_url}/{url_a.get('href')}"
209209
raise ValueError(
210210
f"It was not possible to find the package requested. pkg: {pkg_name}"
211211
)

0 commit comments

Comments
 (0)