Update dependencies

This commit is contained in:
Joakim Hellsén 2024-05-21 02:50:37 +02:00
commit 3f3ad42acd
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
4 changed files with 15 additions and 19 deletions

View file

@ -1,13 +1,6 @@
default_language_version: default_language_version:
python: python3.12 python: python3.12
repos: repos:
# Apply a consistent format to pyproject.toml files.
# https://pyproject-fmt.readthedocs.io/en/latest/
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.7.0"
hooks:
- id: pyproject-fmt
# Automatically add trailing commas to calls and literals. # Automatically add trailing commas to calls and literals.
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0 rev: v3.1.0
@ -16,7 +9,7 @@ repos:
# Some out-of-the-box hooks for pre-commit. # Some out-of-the-box hooks for pre-commit.
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v4.6.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-ast - id: check-ast
@ -46,7 +39,7 @@ repos:
# An extremely fast Python linter and formatter. # An extremely fast Python linter and formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4 rev: v0.4.4
hooks: hooks:
- id: ruff-format - id: ruff-format
- id: ruff - id: ruff
@ -54,6 +47,6 @@ repos:
# Static checker for GitHub Actions workflow files. # Static checker for GitHub Actions workflow files.
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.6.27 rev: v1.7.0
hooks: hooks:
- id: actionlint - id: actionlint

View file

@ -4,7 +4,7 @@ import logging
import os import os
import time import time
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING, Iterable from typing import TYPE_CHECKING
from fastapi import APIRouter, File, Request, UploadFile from fastapi import APIRouter, File, Request, UploadFile
from fastapi.responses import FileResponse from fastapi.responses import FileResponse
@ -14,6 +14,8 @@ from app.dependencies import CommonReader, CommonStats # noqa: TCH001
from app.settings import MEDIA_ROOT from app.settings import MEDIA_ROOT
if TYPE_CHECKING: if TYPE_CHECKING:
from collections.abc import Iterable
from fastapi.datastructures import Address from fastapi.datastructures import Address
from reader import Feed from reader import Feed
from reader.types import Entry, EntrySearchResult from reader.types import Entry, EntrySearchResult

14
poetry.lock generated
View file

@ -2,13 +2,13 @@
[[package]] [[package]]
name = "annotated-types" name = "annotated-types"
version = "0.6.0" version = "0.7.0"
description = "Reusable constraint types to use with typing.Annotated" description = "Reusable constraint types to use with typing.Annotated"
optional = false optional = false
python-versions = ">=3.8" python-versions = ">=3.8"
files = [ files = [
{file = "annotated_types-0.6.0-py3-none-any.whl", hash = "sha256:0641064de18ba7a25dee8f96403ebc39113d0cb953a01429249d5c7564666a43"}, {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"},
{file = "annotated_types-0.6.0.tar.gz", hash = "sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"}, {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"},
] ]
[[package]] [[package]]
@ -1146,13 +1146,13 @@ files = [
[[package]] [[package]]
name = "requests" name = "requests"
version = "2.31.0" version = "2.32.1"
description = "Python HTTP for Humans." description = "Python HTTP for Humans."
optional = false optional = false
python-versions = ">=3.7" python-versions = ">=3.8"
files = [ files = [
{file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, {file = "requests-2.32.1-py3-none-any.whl", hash = "sha256:21ac9465cdf8c1650fe1ecde8a71669a93d4e6f147550483a2967d08396a56a5"},
{file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, {file = "requests-2.32.1.tar.gz", hash = "sha256:eb97e87e64c79e64e5b8ac75cee9dd1f97f49e289b083ee6be96268930725685"},
] ]
[package.dependencies] [package.dependencies]

View file

@ -33,10 +33,11 @@ lint.ignore = [
"ANN201", # Checks that public functions and methods have return type annotations. "ANN201", # Checks that public functions and methods have return type annotations.
"ARG001", # Checks for the presence of unused arguments in function definitions. "ARG001", # Checks for the presence of unused arguments in function definitions.
"B008", # Checks for function calls in default function arguments. "B008", # Checks for function calls in default function arguments.
"D100", # Checks for undocumented public module definitions.
"CPY001", # Checks for the absence of copyright notices within Python files. "CPY001", # Checks for the absence of copyright notices within Python files.
"D100", # Checks for undocumented public module definitions.
"D104", # Checks for undocumented public package definitions. "D104", # Checks for undocumented public package definitions.
"FIX002", # Checks for "TODO" comments. "FIX002", # Checks for "TODO" comments.
"RUF029", # Checks for functions declared async that do not await or otherwise use features requiring the function to be declared async.
] ]
[tool.ruff.lint.pydocstyle] [tool.ruff.lint.pydocstyle]