Skip to content

Commit 13f4f58

Browse files
authored
Merge pull request #116 from jowilf/update-dependencies
Update dependencies
2 parents 2dfcef2 + 19863b1 commit 13f4f58

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-toml
@@ -12,18 +12,18 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.9.0
15+
rev: v3.15.0
1616
hooks:
1717
- id: pyupgrade
1818
args:
1919
- --py38-plus
2020
- repo: https://github.com/charliermarsh/ruff-pre-commit
21-
rev: v0.0.278
21+
rev: v0.0.292
2222
hooks:
2323
- id: ruff
2424
args:
2525
- --fix
2626
- repo: https://github.com/psf/black
27-
rev: 23.7.0
27+
rev: 23.9.1
2828
hooks:
2929
- id: black

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
4444
[project.optional-dependencies]
4545
test = [
4646
"pytest >=7.2.0, <7.5.0",
47-
"mypy ==1.4.1",
48-
"ruff ==0.0.278",
49-
"black ==23.7.0",
47+
"mypy ==1.5.1",
48+
"ruff ==0.0.292",
49+
"black ==23.9.1",
5050
"coverage >=7.0.0, <7.4.0",
51-
"fasteners ==0.18",
51+
"fasteners ==0.19",
5252
"PyMySQL[rsa] >=1.0.2, <1.2.0",
5353
"psycopg2-binary >=2.9.5, <3.0.0",
5454
"Pillow >=9.4.0, <10.1.0",
5555
"python-multipart ==0.0.6",
5656
"fastapi >=0.92, <0.104",
5757
"Flask >=2.2, <2.3",
58-
"Flask-SQLAlchemy >=3.0,<3.1"
58+
"Flask-SQLAlchemy >=3.0,<3.2"
5959
]
6060
doc = [
6161
"mkdocs-material >=9.0.0, <10.0.0",

sqlalchemy_file/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__version__ = "0.5.0"
22

3-
from .file import File
4-
from .types import FileField, ImageField
3+
from .file import File as File # noqa
4+
from .types import FileField as FileField # noqa
5+
from .types import ImageField as ImageField # noqa

sqlalchemy_file/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def process_result_value(
9595
) -> Union[None, MutableList[File], File]:
9696
if value is None:
9797
return None
98-
if type(value) is dict:
98+
if isinstance(value, dict):
9999
return (
100100
MutableList([self.upload_type.decode(value)])
101101
if self.multiple

0 commit comments

Comments
 (0)