Skip to content

Commit

Permalink
Bump ruff from 0.0.277 to 0.0.278 (#81)
Browse files Browse the repository at this point in the history
* 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] <[email protected]>

* 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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jocelin Hounon <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 20, 2023
1 parent 44abe1c commit df8d2c6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
args:
- --py38-plus
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.277
rev: v0.0.278
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
test = [
"pytest >=7.2.0, <7.5.0",
"mypy ==1.4.1",
"ruff ==0.0.277",
"ruff ==0.0.278",
"black ==23.7.0",
"coverage >=7.0.0, <7.3.0",
"fasteners ==0.18",
Expand Down
6 changes: 1 addition & 5 deletions tests/test_content_type_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ class Attachment(Base):
)

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


class TestContentTypeValidator:
Expand Down
6 changes: 1 addition & 5 deletions tests/test_image_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ class Book(Base):
cover = Column(ImageField)

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


class TestImageField:
Expand Down
6 changes: 1 addition & 5 deletions tests/test_image_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ class Book(Base):
)

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


class TestImageValidator:
Expand Down
6 changes: 1 addition & 5 deletions tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ class Book(Base):
) # will add thumbnail generator

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


class TestThumbnailGenerator:
Expand Down
6 changes: 1 addition & 5 deletions tests/test_size_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ class Attachment(Base):
content = Column(FileField(validators=[SizeValidator("5K")]))

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


class TestSizeValidator:
Expand Down

0 comments on commit df8d2c6

Please sign in to comment.