Skip to content

Commit e776bb7

Browse files
[pre-commit.ci] pre-commit autoupdate (#357)
* [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>
1 parent a7e38e6 commit e776bb7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ repos:
1616
- id: trailing-whitespace
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.8.4
19+
rev: v0.9.2
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --show-fixes]
2323
- id: ruff-format
2424

2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.14.0
26+
rev: v1.14.1
2727
hooks:
2828
- id: mypy
2929
additional_dependencies:

src/sqlacodegen/generators.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,10 +1342,7 @@ def generate_base(self) -> None:
13421342
LiteralImport("sqlalchemy.orm", "MappedAsDataclass"),
13431343
],
13441344
declarations=[
1345-
(
1346-
f"class {self.base_class_name}(MappedAsDataclass, "
1347-
"DeclarativeBase):"
1348-
),
1345+
(f"class {self.base_class_name}(MappedAsDataclass, DeclarativeBase):"),
13491346
f"{self.indentation}pass",
13501347
],
13511348
metadata_ref=f"{self.base_class_name}.metadata",

0 commit comments

Comments
 (0)