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
[master (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
[master 24cd5f4] Mirror: 0.1.4
2 files changed, 2 insertions(+), 2 deletions(-)
[master 6695a76] Mirror: 0.1.5
...
[master 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
Close
Hashes for pre_commit_mirror_maker-1.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b8573b60a6bf51fbc3ea65d3833a491c06988f3f64ea1e85e6c94cd4a68d5c0 |
|
MD5 | 9f336a7f77c7fb65b5a60674373af4e4 |
|
BLAKE2b-256 | a0e90bccebc22707e81b091658cfb3e91c0ef7575dfef2d2467c8d2f8d5573ed |
Close
Hashes for pre_commit_mirror_maker-1.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5693619fc2d8121d88ae149aa9d1c3818bf57cca23aa7eb59d3777360009ae47 |
|
MD5 | 1f62638a6e30a07bffd3a57ebb3a7ca9 |
|
BLAKE2b-256 | 697274ac52b325eb6b0bfee119ebaee1ef9e6ecbaa573f4cf799d6f7866c8f92 |