Git¶
🎯 Git¶
📦 uv¶
Install uv:
Create a new project:
Edit pyproject.toml.
[project]
name = "myproject"
version = "0.1.0"
description = ""
requires-python = ">=3.12"
authors = ["John Doe"]
license = "MIT"
readme = "README.md"
dependencies = [
"loguru",
"rich",
"typer",
]
Create a new environment:
Add dependencies:
To create a lock file:
To install the lock file:
To install optional dependencies:
To install with all optional dependencies:
🅿 Pre-commit¶
Always install/update your pre-commit to use the latest versions prior to starting a project.
✅ Tracking Large Files¶
To track large files use Git LFS.
Select which files to track:
Make sure to .gitattributes is tracked: