Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.1.0 → v0.4.2](astral-sh/ruff-pre-commit@v0.1.0...v0.4.2)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0)
- [github.com/psf/black: 23.10.0 → 24.4.2](psf/black@23.10.0...24.4.2)
- [github.com/python-poetry/poetry: 1.6.1 → 1.8.0](python-poetry/poetry@1.6.1...1.8.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 5, 2024
1 parent 5b31401 commit f4b058c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.1.0'
rev: 'v0.4.2'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -22,7 +22,7 @@ repos:
- id: black

- repo: https://github.com/python-poetry/poetry
rev: '1.6.1'
rev: '1.8.0'
hooks:
- id: poetry-check
- id: poetry-lock
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ six==1.16.0 ; python_version >= "3.11" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.11" and python_version < "4.0"
snowballstemmer==2.2.0 ; python_version >= "3.11" and python_version < "4.0"
soupsieve==2.5 ; python_version >= "3.11" and python_version < "4.0"
sphinx-autodoc2 @ git+https://github.com/jag-k/sphinx-autodoc2.git@HEAD ; python_version >= "3.11" and python_version < "4.0"
sphinx-autodoc2 @ git+https://github.com/jag-k/sphinx-autodoc2.git@f84739a7639230c8b8f77c4098ffe4b95b67a62d ; python_version >= "3.11" and python_version < "4.0"
sphinx-basic-ng==1.0.0b2 ; python_version >= "3.11" and python_version < "4.0"
sphinx-copybutton==0.5.2 ; python_version >= "3.11" and python_version < "4.0"
sphinx-inline-tabs==2023.4.21 ; python_version >= "3.11" and python_version < "4.0"
Expand Down
2 changes: 1 addition & 1 deletion media_parser/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MongoConfig(BaseConfig):
collection: str | None = None
allow_population_by_field_name = True
arbitrary_types_allowed = True
json_encoders = {ObjectId: str} # noqa: RUF012
json_encoders = {ObjectId: str}


class MongoModel(BaseModel, Generic[ID]):
Expand Down
2 changes: 1 addition & 1 deletion media_parser/server/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def stream_media(media: Media) -> Iterator[bytes]:
async with aiohttp.ClientSession() as session:
async with session.get(media.url, headers=media.headers) as res:
print(res.headers)
async for (content, b) in res.content.iter_chunks():
async for content, b in res.content.iter_chunks():
yield content


Expand Down

0 comments on commit f4b058c

Please sign in to comment.