Skip to content
Snippets Groups Projects
Verified Commit 2bd49885 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Lower required length of bucket description to 32

#62
parent c5b67d18
No related branches found
No related tags found
2 merge requests!71Delete dev branch,!59Resolve "Lower bucket description min length to 32"
Pipeline #37924 passed
...@@ -15,13 +15,13 @@ repos: ...@@ -15,13 +15,13 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- id: check-ast - id: check-ast
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.7.0 rev: 23.9.1
hooks: hooks:
- id: black - id: black
files: app files: app
args: [--check] args: [--check]
- repo: https://github.com/charliermarsh/ruff-pre-commit - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.285' rev: 'v0.0.292'
hooks: hooks:
- id: ruff - id: ruff
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
...@@ -39,5 +39,5 @@ repos: ...@@ -39,5 +39,5 @@ repos:
additional_dependencies: additional_dependencies:
- boto3-stubs-lite[s3] - boto3-stubs-lite[s3]
- sqlalchemy>=2.0.0,<2.1.0 - sqlalchemy>=2.0.0,<2.1.0
- pydantic - pydantic>=2.4.0,<2.5.0
- types-requests - types-requests
...@@ -28,14 +28,9 @@ class _BaseBucket(BaseModel): ...@@ -28,14 +28,9 @@ class _BaseBucket(BaseModel):
) )
description: str = Field( description: str = Field(
..., ...,
examples=[ examples=["This is a sample description of a bucket"],
"""\
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()
],
description="Description of the bucket", description="Description of the bucket",
min_length=126, min_length=32,
max_length=2**16, max_length=2**16,
) )
......
...@@ -5,12 +5,12 @@ pytest-cov>=4.1.0,<4.2.0 ...@@ -5,12 +5,12 @@ pytest-cov>=4.1.0,<4.2.0
coverage[toml]>=7.3.0,<7.4.0 coverage[toml]>=7.3.0,<7.4.0
# Linters # Linters
ruff ruff
black>=23.07.0,<23.08.0 black>=23.09.0,<23.10.0
isort>=5.12.0,<5.13.0 isort>=5.12.0,<5.13.0
mypy>=1.5.0,<1.6.0 mypy>=1.5.0,<1.6.0
# stubs for mypy # stubs for mypy
boto3-stubs-lite[s3]>=1.28.0,<1.29.0 boto3-stubs-lite[s3]>=1.28.0,<1.29.0
types-requests types-requests
# Miscellaneous # Miscellaneous
pre-commit>=3.3.0,<3.4.0 pre-commit>=3.4.0,<3.5.0
python-dotenv python-dotenv
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
clowmdb>=2.2.0,<2.3.0 clowmdb>=2.2.0,<2.3.0
# Webserver packages # Webserver packages
anyio>=3.7.0,<3.8.0 anyio>=3.7.0,<4.0.0
fastapi>=0.101.0,<0.102.0 fastapi>=0.103.0,<0.104.0
pydantic>=2.2.0,<2.3.0 pydantic>=2.4.0,<2.5.0
pydantic-settings>=2.0.0,<2.1.0 pydantic-settings>=2.0.0,<2.1.0
uvicorn>=0.23.0,<0.24.0 uvicorn>=0.23.0,<0.24.0
# Database packages # Database packages
...@@ -18,5 +18,5 @@ boto3>=1.28.0,<1.29.0 ...@@ -18,5 +18,5 @@ boto3>=1.28.0,<1.29.0
rgwadmin>=2.4.0,<2.5.0 rgwadmin>=2.4.0,<2.5.0
# Miscellaneous # Miscellaneous
tenacity>=8.2.0,<8.3.0 tenacity>=8.2.0,<8.3.0
httpx>=0.24.0,<0.25.0 httpx>=0.25.0,<0.26.0
itsdangerous itsdangerous
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment