Skip to content

AdamZh0u/project-temp

Repository files navigation

Project Template

project-temp – this is my project template that enhances development experience in VS Code with streamlined features.

How to use

  1. Use this template to create a new repository and clone it
git clone https://github.com/AdamZh0u/<your-repo-name>.git
  1. 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
  1. (Optional) modify the pyproject.toml
[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

Key Features

  • 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.
  • 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

Settings

  • 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

mkdocs new [dir-name] # create a new project

# start the live-reloading docs server
mkdocs serve -f docs/mkdocs.yml

Github Actions

  • test locally
    • act
  • release-please

Reference

About

Project template that enhances development experience in VSCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published