Export requirements.txt with pre-commit
This commit is contained in:
parent
08dd3b8218
commit
fbfb79d610
2 changed files with 1839 additions and 0 deletions
|
|
@ -31,6 +31,12 @@ repos:
|
||||||
stages: [pre-merge-commit]
|
stages: [pre-merge-commit]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
# Keep requirements.txt in sync with uv.lock
|
||||||
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
|
rev: 0.13.10
|
||||||
|
hooks:
|
||||||
|
- id: uv-export
|
||||||
|
args: [--extra=research, --no-default-groups, --no-emit-project, --frozen, --quiet, --output-file=requirements.txt]
|
||||||
# Enable hooks provided by the pre-commit project to
|
# Enable hooks provided by the pre-commit project to
|
||||||
# enforce rules that local tools could not that easily.
|
# enforce rules that local tools could not that easily.
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
|
@ -38,6 +44,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
args: [--maxkb=100]
|
args: [--maxkb=100]
|
||||||
|
exclude: ^requirements\.txt$ # Large only because of the hashes
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-builtin-literals
|
- id: check-builtin-literals
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
|
||||||
1832
requirements.txt
Normal file
1832
requirements.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue