Skip to content

Commit

Permalink
chore(python-deps): update dependency pyright to v1.1.380 for dev (#96)
Browse files Browse the repository at this point in the history
* chore(python-deps): update dependency pyright to v1.1.380 for dev

* refactor: Update type checking ignore comments

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Felt, Nicholas <[email protected]>
  • Loading branch information
renovate[bot] and nfelt14 authored Sep 16, 2024
1 parent 41e466e commit 1441de3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc_config/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import tomli

from mkdocs_macros.plugin import MacrosPlugin # pyright: ignore[reportMissingTypeStubs]
from mkdocs_macros.plugin import MacrosPlugin

CONVERSION_PATTERN = re.compile(
r"> \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION|DANGER)]\s*>\s*(.*?)(?=\n[^>]|$)",
Expand Down Expand Up @@ -95,12 +95,12 @@ def on_pre_page_macros(env: MacrosPlugin) -> None:
"""Post-process pages."""
# Check if there are any repo links to replace on the page
env.markdown = convert_local_repo_links_to_urls(
env.markdown, # pyright: ignore[reportUnknownMemberType,reportUnknownArgumentType]
env.markdown,
f"{env.conf.repo_url}/blob/{env.variables['git_ref']}/",
)


def on_post_page_macros(env: MacrosPlugin) -> None:
"""Post-process pages."""
# Check if there are any admonitions to replace on the page
env.markdown = convert_gfm_alerts_to_admonitions(env.markdown) # pyright: ignore[reportUnknownMemberType,reportUnknownArgumentType]
env.markdown = convert_gfm_alerts_to_admonitions(env.markdown)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ poetry-audit-plugin = "^0.4.0"
poetry-plugin-export = "1.8.0"
poetry-pre-commit-plugin = "^0.1.2"
pre-commit = "3.8.0"
pyright = "1.1.379"
pyright = "1.1.380"
tox = "^4.18.0"
tox-gh-actions = "^3.2.0"

Expand Down

0 comments on commit 1441de3

Please sign in to comment.