diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d495fca0460a9e2437686850f0495a6efc7118ec..71a2c864663254316fcf4fe76b8a9a0d7052b49d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,13 +15,13 @@ repos: - id: check-merge-conflict - id: check-ast - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black files: app args: [--check] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.285' + rev: 'v0.0.292' hooks: - id: ruff - repo: https://github.com/PyCQA/isort @@ -39,5 +39,5 @@ repos: additional_dependencies: - boto3-stubs-lite[s3] - sqlalchemy>=2.0.0,<2.1.0 - - pydantic + - pydantic>=2.4.0,<2.5.0 - types-requests diff --git a/app/schemas/bucket.py b/app/schemas/bucket.py index 9325c9a78cd2170fb4c5a60cd0e38336ae951368..7139290cd19077f1af930cb36e9f7db1f376aff5 100644 --- a/app/schemas/bucket.py +++ b/app/schemas/bucket.py @@ -28,14 +28,9 @@ class _BaseBucket(BaseModel): ) description: str = Field( ..., - examples=[ - """\ -This is a very long sample description of a bucket and its purpose which has to be more \ -than 126 characters long and is mandatory. - """.strip() - ], + examples=["This is a sample description of a bucket"], description="Description of the bucket", - min_length=126, + min_length=32, max_length=2**16, ) diff --git a/requirements-dev.txt b/requirements-dev.txt index 0733ec9e9d677ca8d78feb950c4fe094273fa886..aca415ba4302f978fad2f1041f8c0ace6c0988a8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,12 +5,12 @@ pytest-cov>=4.1.0,<4.2.0 coverage[toml]>=7.3.0,<7.4.0 # Linters ruff -black>=23.07.0,<23.08.0 +black>=23.09.0,<23.10.0 isort>=5.12.0,<5.13.0 mypy>=1.5.0,<1.6.0 # stubs for mypy boto3-stubs-lite[s3]>=1.28.0,<1.29.0 types-requests # Miscellaneous -pre-commit>=3.3.0,<3.4.0 +pre-commit>=3.4.0,<3.5.0 python-dotenv diff --git a/requirements.txt b/requirements.txt index 970c9a44d758b9867f012e48d6d44d113da1b922..8e1b908e169d3e423955572d1fb719983be8c3d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,9 +2,9 @@ clowmdb>=2.2.0,<2.3.0 # Webserver packages -anyio>=3.7.0,<3.8.0 -fastapi>=0.101.0,<0.102.0 -pydantic>=2.2.0,<2.3.0 +anyio>=3.7.0,<4.0.0 +fastapi>=0.103.0,<0.104.0 +pydantic>=2.4.0,<2.5.0 pydantic-settings>=2.0.0,<2.1.0 uvicorn>=0.23.0,<0.24.0 # Database packages @@ -18,5 +18,5 @@ boto3>=1.28.0,<1.29.0 rgwadmin>=2.4.0,<2.5.0 # Miscellaneous tenacity>=8.2.0,<8.3.0 -httpx>=0.24.0,<0.25.0 +httpx>=0.25.0,<0.26.0 itsdangerous