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 Jun 3, 2024
1 parent 3ac56c8 commit 7cfee76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
6 changes: 3 additions & 3 deletions examples/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
6 changes: 1 addition & 5 deletions tests/test_multiple_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,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:
Expand Down
7 changes: 1 addition & 6 deletions tests/test_result_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 1 addition & 6 deletions tests/test_single_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7cfee76

Please sign in to comment.