Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml
Project description
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
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 pre_commit_mirror_maker-1.10.0.tar.gz
.
File metadata
- Download URL: pre_commit_mirror_maker-1.10.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e00919de48815f2bc548bcf4784315be8c460b5ea7ce83c5df06b65befed0c |
|
MD5 | 07377ecf00be1a7c34df68c46b9ac600 |
|
BLAKE2b-256 | a3119813de4076e6d81f9f85b0b2d7baf6a683d36195675867dc315423017848 |
File details
Details for the file pre_commit_mirror_maker-1.10.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pre_commit_mirror_maker-1.10.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074ba284ce641410a860442b044d160315d255c5a0e921da62357ef053d2b063 |
|
MD5 | 406d264daa51ed264e3db7754847ba07 |
|
BLAKE2b-256 | b2c5cdf1800bf9292fae08085275ea0365a3d1ab64b15547016b6246bd043e81 |