pre-commit-mirror-maker
Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml
Installation
$ pip install pre-commit-mirror-maker
Sample Usage
To see all supported configuration options, run:
$ pre-commit-mirror --help
For example: making a mirror of the yapf package:
$ git init mirrors-yapf
Initialized empty Git repository in /tmp/mirrors-yapf/.git/
$ pre-commit-mirror mirrors-yapf --language python --package-name yapf --args=-i --types python
[main (root-commit) 88bffee] Mirror: 0.1.3
3 files changed, 16 insertions(+)
create mode 100644 .pre-commit-hooks.yaml
create mode 100644 .version
create mode 100644 setup.py
[main 24cd5f4] Mirror: 0.1.4
2 files changed, 2 insertions(+), 2 deletions(-)
[main 6695a76] Mirror: 0.1.5
...
[main 091ab92] Mirror: 0.22.0
2 files changed, 2 insertions(+), 2 deletions(-)
$ ls -al mirrors-yapf/
total 24
drwxrwxr-x 3 asottile asottile 4096 May 26 10:00 .
drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 ..
drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 .git
-rw-rw-r-- 1 asottile asottile 136 May 26 10:00 .pre-commit-hooks.yaml
-rw-rw-r-- 1 asottile asottile 137 May 26 10:00 setup.py
-rw-rw-r-- 1 asottile asottile 7 May 26 10:00 .version
Metadata
Release files for pre-commit-mirror-maker 1.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pre_commit_mirror_maker-1.14.0.tar.gz | 8.0 kB | Without provenance | Details for pre_commit_mirror_maker-1.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pre_commit_mirror_maker-1.14.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pre_commit_mirror_maker-1.14.0-py2.py3-none-any.whl |
Total release size: 18.4 kB
Release files / pre_commit_mirror_maker-1.14.0.tar.gz
| Download URL | pre_commit_mirror_maker-1.14.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5cc02459058df4d6073975e7f7009150ec57d1dfbed7ac4ec8ef6d6dbab34c2
|
|
BLAKE2b-256 checksum How to use checksums |
0c003e92ccda49c8d2e6534632faa85291210a1a39ce03614b3e6520f4ff5606
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / pre_commit_mirror_maker-1.14.0-py2.py3-none-any.whl
| Download URL | pre_commit_mirror_maker-1.14.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
60d3ff2d171aaa927b57891b03449b3bfbcfec3aead6d18aacacfd12ce42a656
|
|
BLAKE2b-256 checksum How to use checksums |
b2729c393725ad6ea348f9f7b6262924b2be090ce0971cc0fae0bc28c59ca185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for pre-commit-mirror-maker 1.14.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.