Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#21)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.31.0](python-jsonschema/check-jsonschema@0.29.4...0.31.0)
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](codespell-project/codespell@v2.3.0...v2.4.0)
- [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](abravalheri/validate-pyproject@v0.22...v0.23)
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.9.3](astral-sh/ruff-pre-commit@v0.7.2...v0.9.3)
- [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.2](rbubley/mirrors-prettier@v3.3.3...v3.4.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 30, 2025
1 parent 01f0989 commit 4b876ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.31.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.0
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.0.1"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.22
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
rev: "v0.9.3"
hooks:
- id: ruff-format
args: ["--config", "pyproject.toml"]
- id: ruff
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.3.3"
rev: "v3.4.2"
hooks:
- id: prettier
name: Prettier non-workflow files
Expand Down
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 4b876ac

Please sign in to comment.