Skip to content

Commit

Permalink
📚: Update to README
Browse files Browse the repository at this point in the history
  • Loading branch information
arrrrrmin committed Jul 18, 2022
1 parent 4064d63 commit ec0a75c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
pass_filenames: false
always_run: true
description: This hook checks if requirements.txt is in sync with for poetry environments.
args: [-o, requirements.txt, --without-hashes]
args: [-o, requirements.txt, --dev, --without-hashes]
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,27 @@ the [`.pre-commit-hooks.yaml`]-entry.
always_run: true
args: [-o, requirements.txt, --dev, --without-hashes, --with-credentials]
````

````
git commit -m "📦(.pre-commit-hooks.yaml): Better defaults in .pre-commit-hooks.yaml"
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
debug statements (python)............................(no files to check)Skipped
Check requirements.txt...................................................Passed
[main 4064d63] 📦(.pre-commit-hooks.yaml): Better defaults in .pre-commit-hooks.yaml
````
````
git commit -m "📚: Update to README"
check yaml...........................................(no files to check)Skipped
debug statements (python)............................(no files to check)Skipped
Check requirements.txt...................................................Failed
- hook id: poetry-requirements
- exit code: 1

Command for poetry export based on args in `.pre-commit-hooks.yaml`: poetry export --dev --without-hashes --with-credentials
File `requirements.txt` does not exist
Requirements don't match poetry envionment, exporting dependencies ...
Updated requirements.txt
````

0 comments on commit ec0a75c

Please sign in to comment.