Skip to content

Commit

Permalink
bump ruff, use uv in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Feb 29, 2024
1 parent ebd7c9f commit bcb6a17
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand All @@ -17,7 +19,7 @@ repos:
^.*.md$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.3.0
hooks:
- id: ruff-format
- id: ruff
Expand All @@ -26,7 +28,7 @@ repos:
- repo: local
hooks:
- id: typecheck
name: Typecheck
name: typecheck
entry: mypy .
types: [python]
language: system
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ FROM python:3.11-alpine3.19

ENV PYTHONUNBUFFERED=yes \
PYTHONDONTWRITEBYTECODE=yes \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_ROOT_USER_ACTION=ignore

WORKDIR /code
Expand All @@ -26,8 +24,9 @@ RUN : \
gifsicle \
# Font for trocr
ttf-dejavu \
&& pip install -U pip \
&& pip install -r requirements.txt \
&& pip install uv --no-cache-dir --disable-pip-version-check \
&& uv pip install -r requirements.txt --no-cache \
&& uv pip uninstall uv \
&& rm requirements.txt

COPY --from=accents_builder /build/target/release/sayit /usr/bin/sayit
Expand Down
2 changes: 1 addition & 1 deletion accents2
Submodule accents2 updated from df848f to e8ae61
10 changes: 6 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ aiosignal==1.3.1
anyio==4.3.0
# via httpx
async-timeout==4.0.3
# via asyncpg
# via
# asyncpg
# redis
asyncpg==0.29.0
attrs==23.2.0
# via aiohttp
Expand Down Expand Up @@ -60,9 +62,9 @@ pycares==4.4.0
# via aiodns
pycparser==2.21
# via cffi
redis==5.0.1
sentry-sdk==1.40.5
sniffio==1.3.0
redis==5.0.2
sentry-sdk==1.40.6
sniffio==1.3.1
# via
# anyio
# httpx
Expand Down
3 changes: 1 addition & 2 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def __init__(self, name: str, annotation: Any, default: Any) -> None:
self.default = default


class BaseConfig:
...
class BaseConfig: ...


def merge_configs(base: type[BaseConfig], overrides: Optional[type[BaseConfig]]) -> type[BaseConfig]:
Expand Down

0 comments on commit bcb6a17

Please sign in to comment.