mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
2.2 KiB
2.2 KiB
toc_depth
| toc_depth |
|---|
| 1 |
Setup
Prerequisites
You need two tools to develop RenderCV:
uv: Package and project manager. It also handles Python installations, so you don't need to install Python separately.just: Command runner. Development commands are defined in thejustfile, and you needjustto run them.
Install them by following their official installation guides:
Setting Up the Development Environment
-
Clone the repository:
git clone https://github.com/rendercv/rendercv.gitand change to the repository directory:
cd rendercv -
Set up the development environment (creates a virtual environment in
./.venvwith all dependencies):just sync -
Run
just testto verify all tests pass and everything is set up correctly. -
Finally, activate the virtual environment in your integrated development environment (IDE). In Visual Studio Code:
- Press
Ctrl+Shift+P. - Type
Python: Select Interpreter. - Select the one in
./.venv.
- Press
That's it! You're now ready to start developing RenderCV.
Available Commands
Development
just sync: Sync all dependencies (including extras and dev groups)just format: Format code with black and ruffjust check: Run all checks (ruff, pyright, pre-commit)just lock: Updateuv.lockfile
Testing
just test: Run tests with pytestjust test-coverage: Run tests with coverage reportjust update-testdata: Update test data files (see Testing for more details)
Documentation
just build-docs: Build documentationjust serve-docs: Serve documentation locally with live reload
Scripts
just update-schema: Update JSON schemajust update-entry-figures: Update entry figures for documentationjust update-examples: Update example filesjust create-executable: Create standalone executable
Utilities
just count-lines: Count lines of Python code in thesrc/directory