Skip to content

Commit 87708dc

Browse files
committed
Convert existing requirements files to lock files
1 parent a6d02ee commit 87708dc

File tree

4 files changed

+1822
-19
lines changed

4 files changed

+1822
-19
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ repos:
2121
- id: end-of-file-fixer
2222
exclude: '(^djangoproject\/static\/js\/lib\/.*$)'
2323
exclude_types: [json, sql]
24-
- id: file-contents-sorter
25-
files: ^(requirements/\w*.txt)$
26-
args: ["--ignore-case"]
2724
- id: fix-byte-order-marker
2825
- id: mixed-line-ending
2926
- id: trailing-whitespace
@@ -81,4 +78,35 @@ repos:
8178
- repo: https://github.com/astral-sh/uv-pre-commit
8279
rev: 0.9.24
8380
hooks:
84-
- id: uv-lock
81+
- name: Check lock file
82+
id: uv-lock
83+
- name: Check requirements/dev.txt
84+
id: uv-export
85+
args:
86+
[
87+
"--frozen",
88+
"--quiet",
89+
"--group",
90+
"dev",
91+
"--output-file=requirements/dev.txt",
92+
]
93+
- name: Check requirements/tests.txt
94+
id: uv-export
95+
args:
96+
[
97+
"--frozen",
98+
"--quiet",
99+
"--group",
100+
"tests",
101+
"--output-file=requirements/tests.txt",
102+
]
103+
- name: Check requirements/prod.txt
104+
id: uv-export
105+
args:
106+
[
107+
"--frozen",
108+
"--quiet",
109+
"--group",
110+
"prod",
111+
"--output-file=requirements/prod.txt",
112+
]

0 commit comments

Comments
 (0)