Metadata-Version: 2.4
Name: pre_commit_mirror_maker_2
Version: 1.10.0.2
Summary: Fork of pre-commit-mirror-maker
Home-page: https://github.com/GideonBear/pre-commit-mirror-maker-2
Author: Anthony Sottile
Author-email: asottile@umich.edu
License: MIT
Platform: all
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: packaging
Dynamic: license-file

[![build status](https://github.com/GideonBear/pre-commit-mirror-maker-2/actions/workflows/main.yml/badge.svg)](https://github.com/GideonBear/pre-commit-mirror-maker-2/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/GideonBear/pre-commit-mirror-maker-2/main.svg)](https://results.pre-commit.ci/latest/github/GideonBear/pre-commit-mirror-maker-2/main)

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](https://github.com/pre-commit/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:

```console
$ pre-commit-mirror --help
```

For example: making a mirror of the yapf package:

```console
$ 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
```
