Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: pre-commit/action@v3.0.1

migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: "pipenv"

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install Dependencies
run: |
python -m pip install --upgrade pipenv
pipenv sync
run: uv sync --locked

- name: Test for missing migrations
run: pipenv run python manage.py makemigrations --check
run: uv run python manage.py makemigrations --check
env:
DEBUG: True
DATABASE_URL: "sqlite://:memory:"
Expand All @@ -39,4 +39,3 @@ jobs:
RECAPTCHA_PUBLIC: ""
RECAPTCHA_PRIVATE: ""
OIDC_KEY: ""

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ verejné profily.
## Inštalácia a quick-start

Na rozbehanie vývojového prostredia potrebuješ Docker. Na formátovanie kódu používame `pre-commit` hooky, ktoré je vhodné
si nainštalovať. `pre-commit` je uvedený aj v `Pipfile` pre rýchlu inštaláciu.
si nainštalovať.

```bash
pipenv install --dev
pipenv run pre-commit install
uv sync --dev
uv run pre-commit install
```

Development server si vieš spustiť nasledovným príkazom. Trojsten ID by sa ti mal zjaviť na http://localhost:8000.
Development server si vieš spustiť nasledovným príkazom. Trojsten ID by sa ti mal zjaviť na http://localhost:8000.
Niekedy je potrebné rebuildnúť image (napr. pri zmenách Python dependencies), vtedy treba použiť prepínač `--build`.

```bash
Expand Down
1 change: 1 addition & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"css-prod": "npx @tailwindcss/cli -i trojstenid/app.css -o trojstenid/users/static/app.css --minify"
},
"dependencies": {
"@tailwindcss/cli": "^4.1.5",
"@tailwindcss/cli": "^4.1.11",
"@tailwindcss/forms": "^0.5.10",
"tailwindcss": "^4.1.5"
"tailwindcss": "^4.1.11"
}
}
Loading