pre-commit-mirror-maker-2
Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml
This is a fork of pre-commit-mirror-maker to add a few features, including:
- Adding support for
always_run: trueandpass_filenames: false - Add
--skip-existingwhich skips existing tags
Installation
$ pip install pre-commit-mirror-maker-2
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
Release files for pre_commit_mirror_maker_2 1.13.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pre_commit_mirror_maker_2-1.13.0.1.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pre_commit_mirror_maker_2-1.13.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 19.2 kB
Release files / pre_commit_mirror_maker_2-1.13.0.1.tar.gz
| Download URL | pre_commit_mirror_maker_2-1.13.0.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95cfdf8cd6248f80df1ba3375d789d6b215b988fdbfa21257ae384e1baa0ae23
|
|
BLAKE2b-256 checksum How to use checksums |
e2afaf9e4ad6e4d649a54c4dc1d63ee56048ffa4766d6bb8cb5ae6ec32c35383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pre_commit_mirror_maker_2-1.13.0.1-py2.py3-none-any.whl
| Download URL | pre_commit_mirror_maker_2-1.13.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
046271dd82b19f0432b8f86208316acffe22235d5ec2ddde6caa48b0a29da60b
|
|
BLAKE2b-256 checksum How to use checksums |
fe5d42dfa7cfe399a2cfb718576c1426f07ec44951e3cce7a83ed1ed55c30769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|