Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2024
1 parent 745f834 commit 58dc7cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pyproject-fmt/src/pyproject_fmt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
from __future__ import annotations

from argparse import ArgumentParser, ArgumentTypeError
from typing import Sequence
from typing import TYPE_CHECKING

from toml_fmt_common import ArgumentGroup, FmtNamespace, TOMLFormatter, _build_cli, run # noqa: PLC2701

from ._lib import Settings, format_toml

if TYPE_CHECKING:
from collections.abc import Sequence


class PyProjectFmtNamespace(FmtNamespace):
"""Formatting arguments."""
Expand Down
4 changes: 3 additions & 1 deletion tasks/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
from argparse import ArgumentParser, Namespace
from datetime import UTC, datetime
from pathlib import Path
from typing import TYPE_CHECKING, Iterator
from typing import TYPE_CHECKING

from git import Repo
from github import Github, Repository
from github.Auth import Token
from tomllib import load

if TYPE_CHECKING:
from collections.abc import Iterator

from github.Repository import Repository as GitHubRepository

ROOT = Path(__file__).parents[1]
Expand Down
3 changes: 2 additions & 1 deletion tox-toml-fmt/src/tox_toml_fmt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

from __future__ import annotations

from typing import TYPE_CHECKING, Sequence
from typing import TYPE_CHECKING

from toml_fmt_common import ArgumentGroup, FmtNamespace, TOMLFormatter, _build_cli, run # noqa: PLC2701

from ._lib import Settings, format_toml

if TYPE_CHECKING:
from argparse import ArgumentParser
from collections.abc import Sequence


class PyProjectFmtNamespace(FmtNamespace):
Expand Down

0 comments on commit 58dc7cc

Please sign in to comment.