Skip to content

Commit 8dba017

Browse files
committedApr 15, 2024
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 83b0260 commit 8dba017

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed
 

‎examples/flask/app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
db = SQLAlchemy(engine_options={"echo": True})
2020
app = Flask(__name__)
21-
app.config[
22-
"SQLALCHEMY_DATABASE_URI"
23-
] = "sqlite:////tmp/example.db?check_same_thread=False"
21+
app.config["SQLALCHEMY_DATABASE_URI"] = (
22+
"sqlite:////tmp/example.db?check_same_thread=False"
23+
)
2424
db.init_app(app)
2525

2626

‎tests/test_multiple_field.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ class Attachment(Base):
3434
multiple_content = Column(FileField(multiple=True))
3535

3636
def __repr__(self):
37-
return "<Attachment: id {} ; name: {}; multiple_content {}>".format(
38-
self.id,
39-
self.name,
40-
self.multiple_content,
41-
) # pragma: no cover
37+
return f"<Attachment: id {self.id} ; name: {self.name}; multiple_content {self.multiple_content}>" # pragma: no cover
4238

4339

4440
class TestMultipleField:

‎tests/test_result_value.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ class Attachment(Base):
3333
)
3434

3535
def __repr__(self):
36-
return "<Attachment: id {} ; name: {}; content {}; multiple_content {}>".format(
37-
self.id,
38-
self.name,
39-
self.content,
40-
self.multiple_content,
41-
) # pragma: no cover
36+
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}; multiple_content {self.multiple_content}>" # pragma: no cover
4237

4338

4439
class TestResultValue:

‎tests/test_single_field.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ class Attachment(Base):
3737
article_id = Column(Integer, ForeignKey("article.id"))
3838

3939
def __repr__(self):
40-
return "<Attachment: id {} ; name: {}; content {}; article_id {}>".format(
41-
self.id,
42-
self.name,
43-
self.content,
44-
self.article_id,
45-
) # pragma: no cover
40+
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}; article_id {self.article_id}>" # pragma: no cover
4641

4742

4843
class Article(Base):

0 commit comments

Comments
 (0)
Failed to load comments.