project-temp
– this is my project template that enhances development experience in VS Code with streamlined features.
- Use this template to create a new repository and clone it
git clone https://github.com/AdamZh0u/<your-repo-name>.git
- Install dependencies
uv sync
uc sync --group <docs/dev/...> # Optional: sync different groups of dependencies
# activate env in terminal
source .venv/bin/activate # mac linux
.venv/Scripts/activate # windows
- (Optional) modify the pyproject.toml
- project name and license
- uv cache-dir settings
[tool.uv]
cache-dir = ".uv" # need to make sure that the cache is on the same disk.
- install pre-commit hooks
uv tool run pre-commit
- VS Code workspace settings
- Accessing the project root as a constant at
src/config.py
- Add working directory to python path so that the scripts can be run from source directory.
- Accessing the project root as a constant at
- uv for python package management
- configs loading
- pre-commit hooks
- mkdocs for documentation
- docker compose
- Jupyter Settings
- Run Jupyter notebooks from the project root.
- Enable the interactive mode for development.
- pytest + allure
- python modules
- plot utils
- database utils
- github actions
- test
- release
- commit message
- conventional commits
- vscode extension: Conventional Commits
- commitizen
cz bump --changelog
for updating changelog
- conventional commits
- Load Parameters from the
.env
file- In debug mode, parameters are loaded automatically.
- Running in the terminal mode need user settings
"python.experiments.optInto": ["pythonTerminalEnvVarActivation"]
mkdocs new [dir-name] # create a new project
# start the live-reloading docs server
mkdocs serve -f docs/mkdocs.yml
- test locally
- act
- release-please
- release-please
- put github token in repo secrets