Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add pre-commit hook for Hatch project manager #1740

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- id: hatch
name: hatch
description: "Hatch: Hatch is a modern, extensible Python project manager."
entry: hatch
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true
- id: hatch-requirements-project-only
name: hatch-requirements-project-only
description: "Hatch: Write project only requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements --project-only > requirements.txt'"
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true
- id: hatch-requirements-env-only
name: hatch-requirements-env-only
description: "Hatch: Write env only requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements --env-only > requirements.txt'"
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true
- id: hatch-requirements-all
name: hatch-requirements-all
description: "Hatch: Write all requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements --all > requirements.txt'"
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true