Freeze transitive pre-commit dependencies in Python hooks.
Project description
freeze-transitive
Setup
Add the freeze-transitive hook to you pre-commit configuration.
repos:
# Add freeze-transitive to the end of repos, it's important it's the last repository
# as environments for previous hooks must be setup before it runs.
- repo: https://github.com/antonagestam/freeze-transitive
# rev: ...
hooks:
- id: freeze-transitive
Copy your pre-commit configuration to a template file. From now on
.pre-commit-hooks.yaml
acts as a lockfile and you should make no manual edits to it,
instead make edits in .pre-commit-template.yaml
. Both files should be checked into
version control.
$ cp .pre-commit-hooks.yaml .pre-commit-template.yaml
Now run pre-commit and verify it has updated .pre-commit-hooks.yaml
with all
transitive dependencies pinned.
$ pre-commit run --all-files
To run autoupdate, you need to point pre-commit at the template file.
$ pre-commit autoupdate --config=.pre-commit-template.yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file freeze-transitive-0.0.0a0.tar.gz
.
File metadata
- Download URL: freeze-transitive-0.0.0a0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c28ab7c833043e8974f4ae4f208e2a9bb9bc4d6d2394f6bc73d0809042df1dfb |
|
MD5 | 6580c113de4be50ca10a3fedbae576d1 |
|
BLAKE2b-256 | ebe1aa36c00f0c34000a88ad2856c9e498cfd3b220e425f979d7ae1024376d82 |
File details
Details for the file freeze_transitive-0.0.0a0-py3-none-any.whl
.
File metadata
- Download URL: freeze_transitive-0.0.0a0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684aa670c360b290208d535861db5841e5e8eb9f11921021cfec9a83bc07ac1f |
|
MD5 | e04736c080ac2d2650ccb5f19c47d921 |
|
BLAKE2b-256 | 6f2dd3f9461d2471205b74c0b9b94b21bf7d6f4a8a35ff00bc206eaa3c820faf |