Skip to content

About

scratch temporary environment for trying things out

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

scratch_env

A template repo for python projects that is set up using pixi.

This has basic setup for

  • ruff (formatting and linting)
  • pytest
  • codecov
  • git-lfs
  • basic github actions ci
  • pulling updates from this template

One ruff version

Ruff is pinned once, as ruff==X.Y.Z in pyproject.toml. Everything else runs that ruff from the pixi environment:

  • pixi run lint and pixi run ci run ruff check . and ruff format --check .
  • the prek hooks in .pre-commit-config.yaml are repo: local hooks that run pixi run --locked ruff ..., so they carry no version of their own
  • CI (ci.yml and prek.yaml) installs the pixi environment with setup-pixi and locked: true, so CI fails when pixi.lock does not match pyproject.toml. It does not run a stale ruff.

To change the ruff version, edit the pin in pyproject.toml and run pixi lock. Dependabot changes only pyproject.toml, so run pixi lock on its PR before you merge it. Do not add a rev: for ruff to .pre-commit-config.yaml or a version: to a ruff GitHub action.

Continuous Integration Status

Ci Codecov GitHub issues GitHub pull-requests merged GitHub release License Python Pixi Badge

Install

There are three methods of using this project.

  1. Use github to use this project as a template
  2. Clone the project and run, scripts/update_from_template.sh and then scripts/rename_project.sh to rename the project.
  3. In your existing git project run this command:

About

scratch temporary environment for trying things out

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from blooop/python_template