diff --git a/.dockerignore b/.dockerignore index b5941ce..5614512 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,8 @@ *.psql *.sqlite3 -notes.md -.git -.venv -.pre-commit-config.yaml .env +.git +.pre-commit-config.yaml +.venv media +notes.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e41f599..260a987 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v4.4.0 hooks: - id: check-case-conflict - id: check-merge-conflict - id: check-yaml - id: end-of-file-fixer - id: file-contents-sorter - args: ["--ignore-case"] - files: "^.gitignore$" + args: ["--ignore-case", "--unique"] + files: ^(\.gitignore|\.dockerignore|requirements[-\w]*.txt)$ - id: mixed-line-ending args: ["--fix=lf"] - - id: trailing-whitespace - id: pretty-format-json + - id: trailing-whitespace - repo: https://github.com/psf/black rev: 22.10.0 @@ -26,12 +26,12 @@ repos: args: ["--profile=black"] - repo: https://github.com/pycqa/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.982 + rev: v0.991 hooks: - id: mypy additional_dependencies: [types-pyopenssl, types-bleach, types-mock] diff --git a/requirements-dev.txt b/requirements-dev.txt index 4ff8166..196f00d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,9 +1,9 @@ -r requirements.txt -pre-commit~=2.20.0 black==22.10.0 flake8==5.0.4 isort==5.10.1 mock~=4.0.3 +pre-commit~=2.20.0 pytest-asyncio~=0.20.2 pytest-django~=4.5.2 pytest-httpx~=0.21 diff --git a/requirements.txt b/requirements.txt index 1fff2ca..89c1bd3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,20 +1,20 @@ -django~=4.1 -pyld~=2.0.3 -pillow~=9.3.0 -urlman~=2.0.1 -cryptography~=38.0 -httpx~=0.23 -uvicorn~=0.19 -gunicorn~=20.1.0 -psycopg2~=2.9.5 bleach~=5.0.1 -pydantic~=1.10.2 +blurhash-python~=1.1.3 +cryptography~=38.0 +dj_database_url~=1.0.0 django-htmx~=1.13.0 django-storages[google,boto3]~=1.13.1 -whitenoise~=6.2.0 -sphinx~=5.3.0 -sentry-sdk~=1.11.0 -dj_database_url~=1.0.0 -python-dotenv~=0.21.0 +django~=4.1 email-validator~=1.3.0 -blurhash-python~=1.1.3 +gunicorn~=20.1.0 +httpx~=0.23 +pillow~=9.3.0 +psycopg2~=2.9.5 +pydantic~=1.10.2 +pyld~=2.0.3 +python-dotenv~=0.21.0 +sentry-sdk~=1.11.0 +sphinx~=5.3.0 +urlman~=2.0.1 +uvicorn~=0.19 +whitenoise~=6.2.0