Development
Prerequisites
- Python 3.9+
- Poetry
Install dependencies
git clone https://github.com/AlexIvanchyk/django-localekit
cd django-localekit
poetry install
poetry run pre-commit install
This installs all runtime and development dependencies (pytest, ruff, mkdocs-material, pre-commit, etc.) into an isolated virtual environment and registers the git hooks so they run automatically on every commit.
Run the test suite
Run with verbose output:
Run a specific test file:
Check test coverage:
Lint and format
Check for linting issues:
Auto-fix fixable issues:
Check formatting:
Apply formatting:
Preview documentation locally
Open http://127.0.0.1:8000 in your browser. Changes to files in docs/ are reflected live.
Deploy documentation to GitHub Pages
This builds the site and pushes it to the gh-pages branch. The docs are then served at:
https://alexivanchyk.github.io/django-localekit/
Note
Make sure you have push access to the repository before running gh-deploy.