Skip to content

Commit

Permalink
Fixed all mypy and ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Nov 6, 2024
1 parent 646d505 commit b71931f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- run: poetry install --with dev
- run: poetry run ruff format --check
- run: poetry run ruff check
# - run: poetry run mypy src/ tests/ # TODO: Enable this line
- run: poetry run mypy src/ tests/
- run: poetry run pytest
- run: poetry run mkslides build docs/index.md
- uses: actions/upload-pages-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
- run: poetry install --with dev
- run: poetry run ruff format --check
- run: poetry run ruff check
# - run: poetry run mypy src/ tests/ # TODO: Enable this line
- run: poetry run mypy src/ tests/
- run: poetry run pytest
12 changes: 6 additions & 6 deletions src/mkslides/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from urllib.parse import urlparse

import click
import livereload
from livereload.handlers import LiveReloadHandler
import livereload # type: ignore[import-untyped]
from livereload.handlers import LiveReloadHandler # type: ignore[import-untyped]
from rich.logging import RichHandler

from .config import Config
Expand Down Expand Up @@ -86,8 +86,8 @@ def generate(config_file: str, input_path: Path, output_directory: Path) -> None


@cli.command()
@click.argument("files", **files_argument_data)
@click.option("-f", "--config-file", **config_file_argument_data)
@click.argument("files", **files_argument_data) # type: ignore[arg-type]
@click.option("-f", "--config-file", **config_file_argument_data) # type: ignore[arg-type]
@click.option(
"-d",
"--site-dir",
Expand All @@ -110,7 +110,7 @@ def build(files: str, config_file: str, site_dir: str) -> None:


@cli.command()
@click.argument("files", **files_argument_data)
@click.argument("files", **files_argument_data) # type: ignore[arg-type]
@click.option(
"-a",
"--dev-addr",
Expand Down Expand Up @@ -145,7 +145,7 @@ def build(files: str, config_file: str, site_dir: str) -> None:
help="Include the slides template in list of files to watch for live reloading.",
is_flag=True,
)
@click.option("-f", "--config-file", **config_file_argument_data)
@click.option("-f", "--config-file", **config_file_argument_data) # type: ignore[arg-type]
def serve( # noqa: C901
files: str,
dev_addr: str,
Expand Down
2 changes: 1 addition & 1 deletion src/mkslides/markupgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Any
from urllib.parse import urlparse

import frontmatter
import frontmatter # type: ignore[import-untyped]
from emoji import emojize
from natsort import natsorted

Expand Down

0 comments on commit b71931f

Please sign in to comment.