Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.8 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.8 KB

ComPWA repository policy

BSD 3-Clause license Spelling checked pytest pre-commit.ci status code style: prettier uv Ruff

This repository sets the policies for developer environment in repositories if the ComPWA organization (See our Help developing page). The policies are automatically enforced through pre-commit.

Usage

Add a .pre-commit-config.yaml file to your repository with the following content:

repos:
  - repo: https://github.com/ComPWA/policy
    rev: ""
    hooks:
      - id: check-dev-files
      - id: fix-nbformat-version
      - id: set-nb-cells

then run

pre-commit autoupdate --repo=https://github.com/ComPWA/policy

This example lists all available hooks (listed here as ids) ― you can remove some of them.