mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
requirements_txt_fixer.py: Included an option to fail if no version is specified for a requirement
This commit is contained in:
parent
31903eabdb
commit
f939ecc63d
4 changed files with 165 additions and 120 deletions
|
|
@ -186,7 +186,10 @@ the following commandline options:
|
|||
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
||||
|
||||
#### `requirements-txt-fixer`
|
||||
Sorts entries in requirements.txt and constraints.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`
|
||||
Provides also an optional check if a version is specified for each requirement. You can configure this with
|
||||
the following commandline options:
|
||||
- `--fail-without-version` - Fails when no version is specified for a requirement
|
||||
|
||||
#### `sort-simple-yaml`
|
||||
Sorts simple YAML files which consist only of top-level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue