diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d2bc2fc1218ef9a5480f3a820c1340fb2b88932..c86733cc93c637af44a9ec412cb21d37ddc3cad9 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.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 diff --git a/app/schemas/bucket.py b/app/schemas/bucket.py index f2b2f65bff567a12a9aae09e910715121ba4cb9f..4e1790d0563eb1b23d692d9bad94183802836328 100644 --- a/app/schemas/bucket.py +++ b/app/schemas/bucket.py @@ -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( diff --git a/requirements-dev.txt b/requirements-dev.txt index c66bcb7ff89cd80afadc15feec4b84bcb07f3d20..2bc5b726181845e8155edcdd2a625bd641cb2397 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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 diff --git a/requirements.txt b/requirements.txt index 6458d82a83c8b3419df506072aca6ae8e62e60e3..564a676a5b96a19b341f8b1fd001c8cb2927d694 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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