Skip to content

Commit 03cb9e7

Browse files
committed
add constraints file to requirements-txt-fixer files
1 parent 507fb40 commit 03cb9e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
description: sorts entries in requirements.txt.
186186
entry: requirements-txt-fixer
187187
language: python
188-
files: requirements.*\.txt$
188+
files: (requirements|constraints).*\.txt$
189189
- id: sort-simple-yaml
190190
name: sort simple yaml files
191191
description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ the following commandline options:
179179
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
180180

181181
#### `requirements-txt-fixer`
182-
Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
182+
Sorts entries in requirements.txt and constraints.txt and removes incorrect entry for `pkg-resources==0.0.0`
183183

184184
#### `sort-simple-yaml`
185185
Sorts simple YAML files which consist only of top-level

0 commit comments

Comments
 (0)