Skip to content

Commit

Permalink
feat: add new pre-commit hooks for managing Hatch project requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikita-sakalouski committed Oct 1, 2024
1 parent 71cc472 commit 2791aa1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,25 @@
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 requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements > 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 project requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements > 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 project requirements to requirements.txt"
entry: "sh -c 'hatch dep show requirements > requirements.txt'"
language: python
minimum_pre_commit_version: 2.9.2
require_serial: true

0 comments on commit 2791aa1

Please sign in to comment.