Skip to content

Elkhn/cookiecutter-uv-ml-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-uv-ml-template

Getting started (uv)

# generate a project (no global install needed)
uvx cookiecutter gh:Elkhn/cookiecutter-uv-ml-template

cd <your-new-project>
uv sync

GitHub CI workflow check

Run GitHub CI (Ruff linter) on push and pull requests to the main branch

# Lint with Ruff; GitHub-style annotations on PRs
- name: Ruff check
  run: uvx ruff check --output-format=github .

Code quality (ruff, isort, black via uvx)

Run tools in ephemeral envs — no dev dependencies added to your project.

Lint (no changes)

# Lint entire repo
uvx ruff check .

Auto-fix

# 1) Sort imports
uvx isort .

# 2) Format code
uvx black .

# 3) Apply Ruff’s safe fixes (entire repo)
uvx ruff check --fix .

Also remove unused imports/variables:

uvx ruff check --fix --unsafe-fixes .

About

cookiecutter-uv-ml-template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages