mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 20:26:54 +00:00
Merge pull request #857 from lev-blit/sort-constraints
add constraints file to requirements-txt-fixer files
This commit is contained in:
commit
5191f112df
2 changed files with 2 additions and 2 deletions
|
|
@ -185,7 +185,7 @@
|
||||||
description: sorts entries in requirements.txt.
|
description: sorts entries in requirements.txt.
|
||||||
entry: requirements-txt-fixer
|
entry: requirements-txt-fixer
|
||||||
language: python
|
language: python
|
||||||
files: requirements.*\.txt$
|
files: (requirements|constraints).*\.txt$
|
||||||
- id: sort-simple-yaml
|
- id: sort-simple-yaml
|
||||||
name: sort simple yaml files
|
name: sort simple yaml files
|
||||||
description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks.
|
description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks.
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ the following commandline options:
|
||||||
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
||||||
|
|
||||||
#### `requirements-txt-fixer`
|
#### `requirements-txt-fixer`
|
||||||
Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
|
Sorts entries in requirements.txt and constraints.txt and removes incorrect entry for `pkg-resources==0.0.0`
|
||||||
|
|
||||||
#### `sort-simple-yaml`
|
#### `sort-simple-yaml`
|
||||||
Sorts simple YAML files which consist only of top-level
|
Sorts simple YAML files which consist only of top-level
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue