Skip to content

[pre-commit.ci] pre-commit autoupdate #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-toml
@@ -12,18 +12,18 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.20.0
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.11.11
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 25.1.0
hooks:
- id: black
6 changes: 3 additions & 3 deletions examples/flask/app.py
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@

db = SQLAlchemy(engine_options={"echo": True})
app = Flask(__name__)
app.config[
"SQLALCHEMY_DATABASE_URI"
] = "sqlite:////tmp/example.db?check_same_thread=False"
app.config["SQLALCHEMY_DATABASE_URI"] = (
"sqlite:////tmp/example.db?check_same_thread=False"
)
db.init_app(app)


6 changes: 1 addition & 5 deletions tests/test_multiple_field.py
Original file line number Diff line number Diff line change
@@ -36,11 +36,7 @@ class Attachment(Base):
multiple_content = Column(FileField(multiple=True))

def __repr__(self):
return "<Attachment: id {} ; name: {}; multiple_content {}>".format(
self.id,
self.name,
self.multiple_content,
) # pragma: no cover
return f"<Attachment: id {self.id} ; name: {self.name}; multiple_content {self.multiple_content}>" # pragma: no cover


class TestMultipleField:
7 changes: 1 addition & 6 deletions tests/test_result_value.py
Original file line number Diff line number Diff line change
@@ -33,12 +33,7 @@ class Attachment(Base):
)

def __repr__(self):
return "<Attachment: id {} ; name: {}; content {}; multiple_content {}>".format(
self.id,
self.name,
self.content,
self.multiple_content,
) # pragma: no cover
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}; multiple_content {self.multiple_content}>" # pragma: no cover


class TestResultValue:
7 changes: 1 addition & 6 deletions tests/test_single_field.py
Original file line number Diff line number Diff line change
@@ -37,12 +37,7 @@ class Attachment(Base):
article_id = Column(Integer, ForeignKey("article.id"))

def __repr__(self):
return "<Attachment: id {} ; name: {}; content {}; article_id {}>".format(
self.id,
self.name,
self.content,
self.article_id,
) # pragma: no cover
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}; article_id {self.article_id}>" # pragma: no cover


class Article(Base):
Loading