Skip to content

Add pre-commit (ruff format, ruff check, pip compile) and related workflows #46

@jpmckinney

Description

@jpmckinney

ruff format

  • Run ruff format
  • Create .git-blame-ignore-revs for the ruff format commit
  • Add ruff-format to .pre-commit-config.yaml

ruff check

  • Configure ruff check (below) and resolve TODO
  • Run ruff check --fix and ruff check --fix --unsafe-fixes
  • Work through ruff check --statistics or add to the TODO issue
  • Add - id: ruff-check to .pre-commit-config.yaml once ruff check succeeds

uv pip compile

ci:
  autoupdate_schedule: quarterly
  skip: [pip-compile]
# ...
  - repo: https://github.com/astral-sh/uv-pre-commit
    rev: 0.7.19
    hooks:
      - id: pip-compile
        name: pip-compile requirements.in
        args: [requirements.in, -o, requirements.txt]

Miscellaneous

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions