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

Fix pre-commit issues #95

Merged
merged 1 commit into from
Jan 22, 2025
Merged
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ exclude = [
# This file needs to be either upgraded or removed and therefore should be
# ignore from type checking for now
"math_utils\\.py$",
"setup_*.py",
]

[tool.ruff.lint]
Expand Down
6 changes: 3 additions & 3 deletions test/website/test_process_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import tempfile
import textwrap
from pathlib import Path
from typing import Generator, Union
from typing import Generator, Optional, Union

import pytest

Expand Down Expand Up @@ -70,7 +70,7 @@ def test_cleanup_tmp_dirs_if_no_metadata() -> None:

class TestAddFrontMatterToMetadataMdx:
def test_without_metadata_mdx(self) -> None:
front_matter_dict: dict[str, Union[str, Union[list[str] | None]]] = {
front_matter_dict: dict[str, Union[str, Optional[Union[list[str]]]]] = {
"title": "some title",
"link": "/notebooks/some-title",
"description": "some description",
Expand Down Expand Up @@ -120,7 +120,7 @@ def test_without_metadata_mdx(self) -> None:
)

def test_with_metadata_mdx(self) -> None:
front_matter_dict: dict[str, Union[str, Union[list[str] | None]]] = {
front_matter_dict: dict[str, Optional[Union[str, Union[list[str]]]]] = {
"title": "some title",
"link": "/notebooks/some-title",
"description": "some description",
Expand Down
Loading