https://github.com/compwa/policy
Pre-commit hooks that ensure that ComPWA repositories have a similar developer set-up
https://github.com/compwa/policy
Last synced: 3 months ago
JSON representation
Pre-commit hooks that ensure that ComPWA repositories have a similar developer set-up
- Host: GitHub
- URL: https://github.com/compwa/policy
- Owner: ComPWA
- License: bsd-3-clause
- Created: 2021-03-28T13:50:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-01-29T20:01:12.000Z (4 months ago)
- Last Synced: 2026-01-30T08:18:05.896Z (4 months ago)
- Language: Python
- Homepage: https://compwa.github.io/policy
- Size: 1.27 MB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ComPWA repository policy
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell)
[](https://github.com/ComPWA/policy/actions/workflows/ci.yml)
[](https://results.pre-commit.ci/latest/github/ComPWA/policy/main)
[](https://github.com/prettier/prettier)
[](https://github.com/astral-sh/uv)
[](https://github.com/astral-sh/ruff)
[](https://github.com/astral-sh/ty)
This repository sets the policies for developer environment in repositories if the [ComPWA organization](https://github.com/ComPWA) (See our [Help developing](https://compwa.github.io/develop) page). The policies are automatically enforced through [pre-commit](https://pre-commit.com).
## Usage
Add a `.pre-commit-config.yaml` file to your repository with the following content:
```yaml
repos:
- repo: https://github.com/ComPWA/policy
rev: ""
hooks:
- id: check-dev-files
- id: fix-nbformat-version
- id: set-nb-cells
```
then run
```shell
pre-commit autoupdate --repo=https://github.com/ComPWA/policy
```
This example lists [all available hooks](./.pre-commit-hooks.yaml) (listed here as `id`s) ― you can remove some of them.