GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Command-line interface
  • Configuration
  • Migrations
  • API
  • cli
  • bootstrap
  • env
  • format
  • github
  • migrate
  • nb
  • python
  • repo
  • env

This view

  • Original page
  • New address

GeezerVison is showing compwa.github.io — Welcome — ComPWA repository policy

  • Repository
  • Show source
  • Suggest edit
  • Open issue

ComPWA repository policy

Contents

ComPWA repository policy#

This repository standardizes and synchronizes the developer environment of ComPWA repositories. Its check-dev-files hook keeps configuration files up to date as developer tools introduce new features and deprecate old ones. The policies are enforced through prek, a drop-in replacement for pre-commit; all available hooks are listed in .pre-commit-hooks.yaml.

Set up a repository#

Add a .pre-commit-config.yaml file to your repository and list which hooks you want to use:

repos:
  - repo: https://github.com/ComPWA/policy
    rev: ""
    hooks:
      - id: check-dev-files
        args:
          - --repo-name="short name for your repository"

Then install and activate prek:

uv tool install prek
prek autoupdate --repo=https://github.com/ComPWA/policy
prek install

Running the hook for the first time turns this minimal configuration into the standard ComPWA developer setup:

prek run check-dev-files --all-files

For an existing repository, policy bootstrap can detect its current setup and configure the hook automatically. See the command-line guide for bootstrapping, individual checks, and installation options.

The notebook formatting hooks that used to be served from this repository now live in ComPWA/nbhooks.

Contents
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.