Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #601

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
# Run the linter
- id: ruff
Expand Down
5 changes: 2 additions & 3 deletions grayskull/base/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def verify_github_repo_tag(git_url, tag):
if isinstance(response.json(), list):
print_msg(
f"""Found multiple tags matching requested {tag}, possible
matches: {[i['ref'].split('/')[-1] for i in response.json()]}"""
matches: {[i["ref"].split("/")[-1] for i in response.json()]}"""
)
return False
elif response.json()["ref"].split("/")[-1] == tag:
Expand Down Expand Up @@ -147,7 +147,6 @@ def get_git_current_user() -> str:
f" Exception: {err}"
)
print_msg(
f"Using default recipe maintainer:"
f" {Fore.LIGHTMAGENTA_EX}AddYourGitHubIdHere"
f"Using default recipe maintainer: {Fore.LIGHTMAGENTA_EX}AddYourGitHubIdHere"
)
return "AddYourGitHubIdHere"
3 changes: 1 addition & 2 deletions grayskull/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ def main(args=None):

if args.grayskull_power:
print(
f"{Fore.BLUE}By the power of Grayskull...\n"
f"{Style.BRIGHT}I have the power!"
f"{Fore.BLUE}By the power of Grayskull...\n{Style.BRIGHT}I have the power!"
)
return

Expand Down
2 changes: 1 addition & 1 deletion grayskull/strategy/cran.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def scrap_main_page_cran_find_latest_package(
def scrap_cran_archive_page_for_package_folder_url(cran_url: str, pkg_name: str):
for url_a in get_webpage(cran_url).findAll("a"):
if url_a.get_text().strip().lower() == f"{pkg_name.strip().lower()}/":
return f'{cran_url}/{url_a.get("href")}'
return f"{cran_url}/{url_a.get('href')}"
raise ValueError(
f"It was not possible to find the package requested. pkg: {pkg_name}"
)
Expand Down
Loading