Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.4...v0.9.2)
- [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](pre-commit/mirrors-mypy@v1.14.0...v1.14.1)

* [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 23, 2025
1 parent a7e38e6 commit e776bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.9.2
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.0
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
5 changes: 1 addition & 4 deletions src/sqlacodegen/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,10 +1342,7 @@ def generate_base(self) -> None:
LiteralImport("sqlalchemy.orm", "MappedAsDataclass"),
],
declarations=[
(
f"class {self.base_class_name}(MappedAsDataclass, "
"DeclarativeBase):"
),
(f"class {self.base_class_name}(MappedAsDataclass, DeclarativeBase):"),
f"{self.indentation}pass",
],
metadata_ref=f"{self.base_class_name}.metadata",
Expand Down

0 comments on commit e776bb7

Please sign in to comment.