Skip to main content

Fork of pre-commit-mirror-maker

Project description

build status pre-commit.ci status

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: true and pass_filenames: false

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pre_commit_mirror_maker_2-1.10.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pre_commit_mirror_maker_2-1.10.0.2-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pre_commit_mirror_maker_2-1.10.0.2.tar.gz.

File metadata

  • Download URL: pre_commit_mirror_maker_2-1.10.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}

File hashes

Hashes for pre_commit_mirror_maker_2-1.10.0.2.tar.gz
Algorithm Hash digest
SHA256 f0c5fe7d71cd7dd9443374e1d8558f3aa1bed946439b55fe617a2a836a8ce56e
MD5 6dace9badc98478cd0165f7a8f808677
BLAKE2b-256 cca1f3fbe41225e48944838b72d94f2b8a8357fbf07ffe4c3814bc600000d0bf

See more details on using hashes here.

File details

Details for the file pre_commit_mirror_maker_2-1.10.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pre_commit_mirror_maker_2-1.10.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}

File hashes

Hashes for pre_commit_mirror_maker_2-1.10.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46653e9e3fbfaf85877aa33d4826e4da9d30de42ee82198fdb98739005161fa8
MD5 d827db984b7adcbf9b8a9671d626f314
BLAKE2b-256 5841a02baedfcf792a5237f65f265ff972de1e8478e0f2554d8ff67e8e03686d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page