Skip to content

Commit df8d2c6

Browse files
dependabot[bot]jowilfpre-commit-ci[bot]
authored
Bump ruff from 0.0.277 to 0.0.278 (#81)
* Bump ruff from 0.0.277 to 0.0.278 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.277 to 0.0.278. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.277...v0.0.278) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update pre-commit config * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jocelin Hounon <hounonj@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 44abe1c commit df8d2c6

7 files changed

+7
-27
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
args:
1919
- --py38-plus
2020
- repo: https://github.com/charliermarsh/ruff-pre-commit
21-
rev: v0.0.277
21+
rev: v0.0.278
2222
hooks:
2323
- id: ruff
2424
args:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
4545
test = [
4646
"pytest >=7.2.0, <7.5.0",
4747
"mypy ==1.4.1",
48-
"ruff ==0.0.277",
48+
"ruff ==0.0.278",
4949
"black ==23.7.0",
5050
"coverage >=7.0.0, <7.3.0",
5151
"fasteners ==0.18",

tests/test_content_type_validator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ class Attachment(Base):
5656
)
5757

5858
def __repr__(self):
59-
return "<Attachment: id {} ; name: {}; content {}>".format(
60-
self.id,
61-
self.name,
62-
self.content,
63-
) # pragma: no cover
59+
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}>" # pragma: no cover
6460

6561

6662
class TestContentTypeValidator:

tests/test_image_field.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ class Book(Base):
5656
cover = Column(ImageField)
5757

5858
def __repr__(self):
59-
return "<Book: id {} ; name: {}; cover {};>".format(
60-
self.id,
61-
self.title,
62-
self.cover,
63-
) # pragma: no cover
59+
return f"<Book: id {self.id} ; name: {self.title}; cover {self.cover};>" # pragma: no cover
6460

6561

6662
class TestImageField:

tests/test_image_validator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ class Book(Base):
122122
)
123123

124124
def __repr__(self):
125-
return "<Book: id {} ; name: {}; cover {};>".format(
126-
self.id,
127-
self.title,
128-
self.cover,
129-
) # pragma: no cover
125+
return f"<Book: id {self.id} ; name: {self.title}; cover {self.cover};>" # pragma: no cover
130126

131127

132128
class TestImageValidator:

tests/test_processor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ class Book(Base):
4040
) # will add thumbnail generator
4141

4242
def __repr__(self):
43-
return "<Book: id {} ; name: {}; cover {};>".format(
44-
self.id,
45-
self.title,
46-
self.cover,
47-
) # pragma: no cover
43+
return f"<Book: id {self.id} ; name: {self.title}; cover {self.cover};>" # pragma: no cover
4844

4945

5046
class TestThumbnailGenerator:

tests/test_size_validator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ class Attachment(Base):
3939
content = Column(FileField(validators=[SizeValidator("5K")]))
4040

4141
def __repr__(self):
42-
return "<Attachment: id {} ; name: {}; content {}>".format(
43-
self.id,
44-
self.name,
45-
self.content,
46-
) # pragma: no cover
42+
return f"<Attachment: id {self.id} ; name: {self.name}; content {self.content}>" # pragma: no cover
4743

4844

4945
class TestSizeValidator:

0 commit comments

Comments
 (0)