Skip to content

Commit

Permalink
Merge pull request #116 from jowilf/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jowilf authored Oct 7, 2023
2 parents 2dfcef2 + 19863b1 commit 13f4f58
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-toml
Expand All @@ -12,18 +12,18 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.292
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
[project.optional-dependencies]
test = [
"pytest >=7.2.0, <7.5.0",
"mypy ==1.4.1",
"ruff ==0.0.278",
"black ==23.7.0",
"mypy ==1.5.1",
"ruff ==0.0.292",
"black ==23.9.1",
"coverage >=7.0.0, <7.4.0",
"fasteners ==0.18",
"fasteners ==0.19",
"PyMySQL[rsa] >=1.0.2, <1.2.0",
"psycopg2-binary >=2.9.5, <3.0.0",
"Pillow >=9.4.0, <10.1.0",
"python-multipart ==0.0.6",
"fastapi >=0.92, <0.104",
"Flask >=2.2, <2.3",
"Flask-SQLAlchemy >=3.0,<3.1"
"Flask-SQLAlchemy >=3.0,<3.2"
]
doc = [
"mkdocs-material >=9.0.0, <10.0.0",
Expand Down
5 changes: 3 additions & 2 deletions sqlalchemy_file/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__version__ = "0.5.0"

from .file import File
from .types import FileField, ImageField
from .file import File as File # noqa
from .types import FileField as FileField # noqa
from .types import ImageField as ImageField # noqa
2 changes: 1 addition & 1 deletion sqlalchemy_file/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def process_result_value(
) -> Union[None, MutableList[File], File]:
if value is None:
return None
if type(value) is dict:
if isinstance(value, dict):
return (
MutableList([self.upload_type.decode(value)])
if self.multiple
Expand Down

0 comments on commit 13f4f58

Please sign in to comment.