Skip to content
Snippets Groups Projects
Commit 66b9091c authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/65-fix-broken-bucket-name-regex' into 'development'

Resolve "Fix broken bucket name regex"

Closes #65

See merge request !62
parents 47269fdf 65a28d64
No related branches found
No related tags found
2 merge requests!71Delete dev branch,!62Resolve "Fix broken bucket name regex"
Pipeline #39334 passed
......@@ -15,13 +15,13 @@ repos:
- id: check-merge-conflict
- id: check-ast
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.0
hooks:
- id: black
files: app
args: [--check]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.292'
rev: 'v0.1.1'
hooks:
- id: ruff
- repo: https://github.com/PyCQA/isort
......@@ -31,7 +31,7 @@ repos:
files: app
args: [-c]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
rev: v1.6.1
hooks:
- id: mypy
files: app
......
......@@ -18,7 +18,7 @@ class _BaseBucket(BaseModel):
description="Name of the bucket",
min_length=3,
max_length=63,
pattern=r"^([a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$",
pattern=r"^([a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$",
# https://docs.ceph.com/en/latest/radosgw/s3/bucketops/#constraints
)
description: str = Field(
......
......@@ -4,8 +4,8 @@ pytest-asyncio>=0.21.0,<0.22.0
pytest-cov>=4.1.0,<4.2.0
coverage[toml]>=7.3.0,<7.4.0
# Linters
ruff
black>=23.09.0,<23.10.0
ruff>=0.1.0,<0.2.0
black>=23.10.0,<23.11.0
isort>=5.12.0,<5.13.0
mypy>=1.6.0,<1.7.0
# stubs for mypy
......
......@@ -3,7 +3,7 @@ clowmdb>=2.2.0,<2.3.0
# Webserver packages
anyio>=3.7.0,<4.0.0
fastapi>=0.103.0,<0.104.0
fastapi>=0.104.0,<0.105.0
pydantic>=2.4.0,<2.5.0
pydantic-settings>=2.0.0,<2.1.0
uvicorn>=0.23.0,<0.24.0
......
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