Skip to main content

build status pre-commit.ci status

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

Release files for pre-commit-mirror-maker 1.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pre-commit-mirror-maker 1.13.1
File Size Uploaded
pre_commit_mirror_maker-1.13.1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pre-commit-mirror-maker 1.13.1
File Interpreter ABI Platform
pre_commit_mirror_maker-1.13.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 18.1 kB

Release files / pre_commit_mirror_maker-1.13.1.tar.gz

Download URL pre_commit_mirror_maker-1.13.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
076385787736d9f58a8bc3e855b0a384319fb88cabe0b039653236d85c5edc4d
BLAKE2b-256 checksum
How to use checksums
60f894a67976310e9eb1f39b04f630f23ccd1f77f48401f693ac4f573edc1c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / pre_commit_mirror_maker-1.13.1-py2.py3-none-any.whl

Download URL pre_commit_mirror_maker-1.13.1-py2.py3-none-any.whl
Size 10.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4eadb83df959e4bf4bf0bb1cd390402f966c02e13d447893068bf6163c3db274
BLAKE2b-256 checksum
How to use checksums
9fa4d919aae51a45c5138edbf994784b87bb4599aed2ebcd25e73832b3cb9997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.13.1 This release

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.4.0

3 release files

0.3.2

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page