lefthook 0.1.2__tar.gz → 1.7.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lefthook might be problematic. Click here for more details.
- {lefthook-0.1.2 → lefthook-1.7.18}/LICENSE +8 -6
- lefthook-1.7.18/PKG-INFO +64 -0
- lefthook-1.7.18/README.md +50 -0
- lefthook-1.7.18/lefthook/__main__.py +6 -0
- lefthook-1.7.18/lefthook/bin/lefthook-darwin-arm64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-darwin-x86_64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-freebsd-arm64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-freebsd-x86_64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-linux-arm64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-linux-x86_64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-openbsd-arm64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-openbsd-x86_64/lefthook +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-windows-arm64/lefthook.exe +0 -0
- lefthook-1.7.18/lefthook/bin/lefthook-windows-x86_64/lefthook.exe +0 -0
- lefthook-1.7.18/lefthook/main.py +24 -0
- lefthook-1.7.18/lefthook.egg-info/PKG-INFO +64 -0
- lefthook-1.7.18/lefthook.egg-info/SOURCES.txt +21 -0
- lefthook-1.7.18/lefthook.egg-info/dependency_links.txt +1 -0
- lefthook-1.7.18/lefthook.egg-info/entry_points.txt +2 -0
- lefthook-1.7.18/lefthook.egg-info/top_level.txt +1 -0
- lefthook-1.7.18/setup.cfg +4 -0
- lefthook-1.7.18/setup.py +41 -0
- lefthook-0.1.2/PKG-INFO +0 -37
- lefthook-0.1.2/README.md +0 -23
- lefthook-0.1.2/README.rst +0 -27
- lefthook-0.1.2/lefthook/__init__.py +0 -8
- lefthook-0.1.2/lefthook/__main__.py +0 -5
- lefthook-0.1.2/lefthook/_core.py +0 -44
- lefthook-0.1.2/lefthook.egg-info/PKG-INFO +0 -37
- lefthook-0.1.2/lefthook.egg-info/SOURCES.txt +0 -6
- lefthook-0.1.2/lefthook.egg-info/entry_points.txt +0 -0
- lefthook-0.1.2/lefthook.egg-info/requires.txt +0 -0
- lefthook-0.1.2/lefthook.egg-info/top_level.txt +0 -1
- lefthook-0.1.2/setup.py +0 -36
- /lefthook-0.1.2/lefthook.egg-info/dependency_links.txt → /lefthook-1.7.18/lefthook/__init__.py +0 -0
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2019 Arkweid
|
|
2
5
|
|
|
3
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
7
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -7,14 +10,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
7
10
|
copies of the Software, and to permit persons to whom the Software is
|
|
8
11
|
furnished to do so, subject to the following conditions:
|
|
9
12
|
|
|
10
|
-
The above copyright notice and this permission notice
|
|
11
|
-
|
|
12
|
-
Software.
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
13
15
|
|
|
14
16
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
17
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
18
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
19
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
20
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
SOFTWARE.
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
lefthook-1.7.18/PKG-INFO
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: lefthook
|
|
3
|
+
Version: 1.7.18
|
|
4
|
+
Summary: Git hooks manager. Fast, powerful, simple.
|
|
5
|
+
Home-page: https://github.com/evilmartians/lefthook
|
|
6
|
+
Author: Evil Martians
|
|
7
|
+
Author-email: lefthook@evilmartians.com
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
[](https://coveralls.io/github/evilmartians/lefthook?branch=master)
|
|
17
|
+
|
|
18
|
+
# Lefthook
|
|
19
|
+
|
|
20
|
+
> The fastest polyglot Git hooks manager out there
|
|
21
|
+
|
|
22
|
+
<img align="right" width="147" height="100" title="Lefthook logo"
|
|
23
|
+
src="https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/logo_sign.svg">
|
|
24
|
+
|
|
25
|
+
A Git hooks manager for Node.js, Ruby and many other types of projects.
|
|
26
|
+
|
|
27
|
+
* **Fast.** It is written in Go. Can run commands in parallel.
|
|
28
|
+
* **Powerful.** It allows to control execution and files you pass to your commands.
|
|
29
|
+
* **Simple.** It is single dependency-free binary which can work in any environment.
|
|
30
|
+
|
|
31
|
+
📖 [Read the introduction post](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook)
|
|
32
|
+
|
|
33
|
+
<a href="https://evilmartians.com/?utm_source=lefthook">
|
|
34
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install lefthook
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Configure your hooks, install them once and forget about it: rely on the magic underneath.
|
|
45
|
+
|
|
46
|
+
#### TL;DR
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Configure your hooks
|
|
50
|
+
vim lefthook.yml
|
|
51
|
+
|
|
52
|
+
# Install them to the git project
|
|
53
|
+
lefthook install
|
|
54
|
+
|
|
55
|
+
# Enjoy your work with git
|
|
56
|
+
git add -A && git commit -m '...'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### More details
|
|
60
|
+
|
|
61
|
+
- [**Configuration**](https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md) for `lefthook.yml` config options.
|
|
62
|
+
- [**Usage**](https://github.com/evilmartians/lefthook/blob/master/docs/usage.md) for **lefthook** CLI options, supported ENVs, and usage tips.
|
|
63
|
+
- [**Discussions**](https://github.com/evilmartians/lefthook/discussions) for questions, ideas, suggestions.
|
|
64
|
+
<!-- - [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for guides, examples, and benchmarks. -->
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+

|
|
2
|
+
[](https://coveralls.io/github/evilmartians/lefthook?branch=master)
|
|
3
|
+
|
|
4
|
+
# Lefthook
|
|
5
|
+
|
|
6
|
+
> The fastest polyglot Git hooks manager out there
|
|
7
|
+
|
|
8
|
+
<img align="right" width="147" height="100" title="Lefthook logo"
|
|
9
|
+
src="https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/logo_sign.svg">
|
|
10
|
+
|
|
11
|
+
A Git hooks manager for Node.js, Ruby and many other types of projects.
|
|
12
|
+
|
|
13
|
+
* **Fast.** It is written in Go. Can run commands in parallel.
|
|
14
|
+
* **Powerful.** It allows to control execution and files you pass to your commands.
|
|
15
|
+
* **Simple.** It is single dependency-free binary which can work in any environment.
|
|
16
|
+
|
|
17
|
+
📖 [Read the introduction post](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook)
|
|
18
|
+
|
|
19
|
+
<a href="https://evilmartians.com/?utm_source=lefthook">
|
|
20
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install lefthook
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
Configure your hooks, install them once and forget about it: rely on the magic underneath.
|
|
31
|
+
|
|
32
|
+
#### TL;DR
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Configure your hooks
|
|
36
|
+
vim lefthook.yml
|
|
37
|
+
|
|
38
|
+
# Install them to the git project
|
|
39
|
+
lefthook install
|
|
40
|
+
|
|
41
|
+
# Enjoy your work with git
|
|
42
|
+
git add -A && git commit -m '...'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### More details
|
|
46
|
+
|
|
47
|
+
- [**Configuration**](https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md) for `lefthook.yml` config options.
|
|
48
|
+
- [**Usage**](https://github.com/evilmartians/lefthook/blob/master/docs/usage.md) for **lefthook** CLI options, supported ENVs, and usage tips.
|
|
49
|
+
- [**Discussions**](https://github.com/evilmartians/lefthook/discussions) for questions, ideas, suggestions.
|
|
50
|
+
<!-- - [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for guides, examples, and benchmarks. -->
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
import platform
|
|
4
|
+
import subprocess
|
|
5
|
+
|
|
6
|
+
ISSUE_URL = "https://github.com/evilmartians/lefthook/issues/new/choose"
|
|
7
|
+
ARCH_MAPPING = {
|
|
8
|
+
'amd64': 'x86_64',
|
|
9
|
+
'aarch64': 'arm64',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
def main():
|
|
13
|
+
os_name = platform.system().lower()
|
|
14
|
+
arch = platform.machine().lower()
|
|
15
|
+
arch = ARCH_MAPPING.get(arch, arch)
|
|
16
|
+
ext = os_name == "windows" and ".exe" or ""
|
|
17
|
+
subfolder = f"lefthook-{os_name}-{arch}"
|
|
18
|
+
executable = os.path.join(os.path.dirname(__file__), "bin", subfolder, "lefthook"+ext)
|
|
19
|
+
if not os.path.isfile(executable):
|
|
20
|
+
print(f"Couldn't find binary {executable}. Please create an issue: {ISSUE_URL}")
|
|
21
|
+
return 1
|
|
22
|
+
|
|
23
|
+
result = subprocess.run([executable] + sys.argv[1:])
|
|
24
|
+
return result.returncode
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: lefthook
|
|
3
|
+
Version: 1.7.18
|
|
4
|
+
Summary: Git hooks manager. Fast, powerful, simple.
|
|
5
|
+
Home-page: https://github.com/evilmartians/lefthook
|
|
6
|
+
Author: Evil Martians
|
|
7
|
+
Author-email: lefthook@evilmartians.com
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
[](https://coveralls.io/github/evilmartians/lefthook?branch=master)
|
|
17
|
+
|
|
18
|
+
# Lefthook
|
|
19
|
+
|
|
20
|
+
> The fastest polyglot Git hooks manager out there
|
|
21
|
+
|
|
22
|
+
<img align="right" width="147" height="100" title="Lefthook logo"
|
|
23
|
+
src="https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/logo_sign.svg">
|
|
24
|
+
|
|
25
|
+
A Git hooks manager for Node.js, Ruby and many other types of projects.
|
|
26
|
+
|
|
27
|
+
* **Fast.** It is written in Go. Can run commands in parallel.
|
|
28
|
+
* **Powerful.** It allows to control execution and files you pass to your commands.
|
|
29
|
+
* **Simple.** It is single dependency-free binary which can work in any environment.
|
|
30
|
+
|
|
31
|
+
📖 [Read the introduction post](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook)
|
|
32
|
+
|
|
33
|
+
<a href="https://evilmartians.com/?utm_source=lefthook">
|
|
34
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install lefthook
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Configure your hooks, install them once and forget about it: rely on the magic underneath.
|
|
45
|
+
|
|
46
|
+
#### TL;DR
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Configure your hooks
|
|
50
|
+
vim lefthook.yml
|
|
51
|
+
|
|
52
|
+
# Install them to the git project
|
|
53
|
+
lefthook install
|
|
54
|
+
|
|
55
|
+
# Enjoy your work with git
|
|
56
|
+
git add -A && git commit -m '...'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### More details
|
|
60
|
+
|
|
61
|
+
- [**Configuration**](https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md) for `lefthook.yml` config options.
|
|
62
|
+
- [**Usage**](https://github.com/evilmartians/lefthook/blob/master/docs/usage.md) for **lefthook** CLI options, supported ENVs, and usage tips.
|
|
63
|
+
- [**Discussions**](https://github.com/evilmartians/lefthook/discussions) for questions, ideas, suggestions.
|
|
64
|
+
<!-- - [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for guides, examples, and benchmarks. -->
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
setup.py
|
|
4
|
+
lefthook/__init__.py
|
|
5
|
+
lefthook/__main__.py
|
|
6
|
+
lefthook/main.py
|
|
7
|
+
lefthook.egg-info/PKG-INFO
|
|
8
|
+
lefthook.egg-info/SOURCES.txt
|
|
9
|
+
lefthook.egg-info/dependency_links.txt
|
|
10
|
+
lefthook.egg-info/entry_points.txt
|
|
11
|
+
lefthook.egg-info/top_level.txt
|
|
12
|
+
lefthook/bin/lefthook-darwin-arm64/lefthook
|
|
13
|
+
lefthook/bin/lefthook-darwin-x86_64/lefthook
|
|
14
|
+
lefthook/bin/lefthook-freebsd-arm64/lefthook
|
|
15
|
+
lefthook/bin/lefthook-freebsd-x86_64/lefthook
|
|
16
|
+
lefthook/bin/lefthook-linux-arm64/lefthook
|
|
17
|
+
lefthook/bin/lefthook-linux-x86_64/lefthook
|
|
18
|
+
lefthook/bin/lefthook-openbsd-arm64/lefthook
|
|
19
|
+
lefthook/bin/lefthook-openbsd-x86_64/lefthook
|
|
20
|
+
lefthook/bin/lefthook-windows-arm64/lefthook.exe
|
|
21
|
+
lefthook/bin/lefthook-windows-x86_64/lefthook.exe
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lefthook
|
lefthook-1.7.18/setup.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
with open("README.md", "r") as fh:
|
|
4
|
+
long_description = fh.read()
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
name='lefthook',
|
|
8
|
+
version='1.7.18',
|
|
9
|
+
author='Evil Martians',
|
|
10
|
+
author_email='lefthook@evilmartians.com',
|
|
11
|
+
url='https://github.com/evilmartians/lefthook',
|
|
12
|
+
description='Git hooks manager. Fast, powerful, simple.',
|
|
13
|
+
long_description=long_description,
|
|
14
|
+
long_description_content_type="text/markdown",
|
|
15
|
+
packages=find_packages(),
|
|
16
|
+
entry_points={
|
|
17
|
+
'console_scripts': [
|
|
18
|
+
'lefthook=lefthook.main:main'
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
package_data={
|
|
22
|
+
'lefthook':[
|
|
23
|
+
'bin/lefthook-linux-x86_64/lefthook',
|
|
24
|
+
'bin/lefthook-linux-arm64/lefthook',
|
|
25
|
+
'bin/lefthook-freebsd-x86_64/lefthook',
|
|
26
|
+
'bin/lefthook-freebsd-arm64/lefthook',
|
|
27
|
+
'bin/lefthook-openbsd-x86_64/lefthook',
|
|
28
|
+
'bin/lefthook-openbsd-arm64/lefthook',
|
|
29
|
+
'bin/lefthook-windows-x86_64/lefthook.exe',
|
|
30
|
+
'bin/lefthook-windows-arm64/lefthook.exe',
|
|
31
|
+
'bin/lefthook-darwin-x86_64/lefthook',
|
|
32
|
+
'bin/lefthook-darwin-arm64/lefthook',
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
classifiers=[
|
|
36
|
+
'License :: OSI Approved :: MIT License',
|
|
37
|
+
'Operating System :: OS Independent',
|
|
38
|
+
'Topic :: Software Development :: Version Control :: Git'
|
|
39
|
+
],
|
|
40
|
+
python_requires='>=3.6',
|
|
41
|
+
)
|
lefthook-0.1.2/PKG-INFO
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: lefthook
|
|
3
|
-
Version: 0.1.2
|
|
4
|
-
Summary: Lefthook installer
|
|
5
|
-
Home-Page: https://github.com/life4/lefthook
|
|
6
|
-
Project-URL: Lefthook, https://github.com/Arkweid/lefthook
|
|
7
|
-
Author: Gram (@orsinium)
|
|
8
|
-
Author-email: master_fess@mail.ru
|
|
9
|
-
Requires-Python: >=3.5
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Lefthook
|
|
13
|
-
========
|
|
14
|
-
|
|
15
|
-
Wrapper for `lefthook <https://github.com/Arkweid/lefthook>`_ to make it installable in the Python ecosystem. Add it into your project dependencies if you want to use lefthook in your Python project.
|
|
16
|
-
|
|
17
|
-
Installation
|
|
18
|
-
------------
|
|
19
|
-
|
|
20
|
-
.. code-block:: bash
|
|
21
|
-
|
|
22
|
-
python3 -m pip install --user lefthook
|
|
23
|
-
|
|
24
|
-
Usage
|
|
25
|
-
-----
|
|
26
|
-
|
|
27
|
-
You can use this module as proxy for original lefthook. It can be installed on the first execution.
|
|
28
|
-
|
|
29
|
-
.. code-block:: bash
|
|
30
|
-
|
|
31
|
-
python3 -m lefthook --help
|
|
32
|
-
|
|
33
|
-
This command will install the latest lefthook release and call ``lefthook --help``. Now, you can use lefthook directly:
|
|
34
|
-
|
|
35
|
-
.. code-block:: bash
|
|
36
|
-
|
|
37
|
-
lefthook --help
|
lefthook-0.1.2/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Lefthook
|
|
2
|
-
|
|
3
|
-
Wrapper for [lefthook](https://github.com/Arkweid/lefthook) to make it installable in the Python ecosystem. Add it into your project dependencies if you want to use lefthook in your Python project.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
python3 -m pip install --user lefthook
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
You can use this module as proxy for original lefthook. It can be installed on the first execution.
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
python3 -m lefthook --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This command will install the latest lefthook release and call `lefthook --help`. Now, you can use lefthook directly:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
lefthook --help
|
|
23
|
-
```
|
lefthook-0.1.2/README.rst
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Lefthook
|
|
3
|
-
========
|
|
4
|
-
|
|
5
|
-
Wrapper for `lefthook <https://github.com/Arkweid/lefthook>`_ to make it installable in the Python ecosystem. Add it into your project dependencies if you want to use lefthook in your Python project.
|
|
6
|
-
|
|
7
|
-
Installation
|
|
8
|
-
------------
|
|
9
|
-
|
|
10
|
-
.. code-block:: bash
|
|
11
|
-
|
|
12
|
-
python3 -m pip install --user lefthook
|
|
13
|
-
|
|
14
|
-
Usage
|
|
15
|
-
-----
|
|
16
|
-
|
|
17
|
-
You can use this module as proxy for original lefthook. It can be installed on the first execution.
|
|
18
|
-
|
|
19
|
-
.. code-block:: bash
|
|
20
|
-
|
|
21
|
-
python3 -m lefthook --help
|
|
22
|
-
|
|
23
|
-
This command will install the latest lefthook release and call ``lefthook --help``. Now, you can use lefthook directly:
|
|
24
|
-
|
|
25
|
-
.. code-block:: bash
|
|
26
|
-
|
|
27
|
-
lefthook --help
|
lefthook-0.1.2/lefthook/_core.py
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import subprocess
|
|
2
|
-
import sys
|
|
3
|
-
from shutil import which
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
COMMANDS = (
|
|
7
|
-
'go get github.com/Arkweid/lefthook',
|
|
8
|
-
'brew install Arkweid/lefthook/lefthook',
|
|
9
|
-
'npm install @arkweid/lefthook --save-dev',
|
|
10
|
-
'gem install lefthook',
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def _install(command: str) -> bool:
|
|
15
|
-
executable = command.split(' ', maxsplit=1)[0]
|
|
16
|
-
if not which(executable):
|
|
17
|
-
print('#', executable, 'not found')
|
|
18
|
-
return False
|
|
19
|
-
result = subprocess.run(command.split())
|
|
20
|
-
if result.returncode != 0:
|
|
21
|
-
return False
|
|
22
|
-
print('# installed with', executable)
|
|
23
|
-
return True
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def install() -> bool:
|
|
27
|
-
for command in COMMANDS:
|
|
28
|
-
if _install(command):
|
|
29
|
-
return True
|
|
30
|
-
return False
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def run(argv: list = None) -> int:
|
|
34
|
-
if argv is None:
|
|
35
|
-
argv = sys.argv
|
|
36
|
-
|
|
37
|
-
if not which('lefthook'):
|
|
38
|
-
print('# lefthook not found, trying to install')
|
|
39
|
-
if not install():
|
|
40
|
-
print('! cannot install lefthook')
|
|
41
|
-
return 1
|
|
42
|
-
|
|
43
|
-
result = subprocess.run(['lefthook'] + argv[1:])
|
|
44
|
-
return result.returncode
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: lefthook
|
|
3
|
-
Version: 0.1.2
|
|
4
|
-
Summary: Lefthook installer
|
|
5
|
-
Home-Page: https://github.com/life4/lefthook
|
|
6
|
-
Project-URL: Lefthook, https://github.com/Arkweid/lefthook
|
|
7
|
-
Author: Gram (@orsinium)
|
|
8
|
-
Author-email: master_fess@mail.ru
|
|
9
|
-
Requires-Python: >=3.5
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Lefthook
|
|
13
|
-
========
|
|
14
|
-
|
|
15
|
-
Wrapper for `lefthook <https://github.com/Arkweid/lefthook>`_ to make it installable in the Python ecosystem. Add it into your project dependencies if you want to use lefthook in your Python project.
|
|
16
|
-
|
|
17
|
-
Installation
|
|
18
|
-
------------
|
|
19
|
-
|
|
20
|
-
.. code-block:: bash
|
|
21
|
-
|
|
22
|
-
python3 -m pip install --user lefthook
|
|
23
|
-
|
|
24
|
-
Usage
|
|
25
|
-
-----
|
|
26
|
-
|
|
27
|
-
You can use this module as proxy for original lefthook. It can be installed on the first execution.
|
|
28
|
-
|
|
29
|
-
.. code-block:: bash
|
|
30
|
-
|
|
31
|
-
python3 -m lefthook --help
|
|
32
|
-
|
|
33
|
-
This command will install the latest lefthook release and call ``lefthook --help``. Now, you can use lefthook directly:
|
|
34
|
-
|
|
35
|
-
.. code-block:: bash
|
|
36
|
-
|
|
37
|
-
lefthook --help
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
lefthook
|
lefthook-0.1.2/setup.py
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT THIS FILE!
|
|
4
|
-
# This file has been autogenerated by dephell <3
|
|
5
|
-
# https://github.com/dephell/dephell
|
|
6
|
-
|
|
7
|
-
try:
|
|
8
|
-
from setuptools import setup
|
|
9
|
-
except ImportError:
|
|
10
|
-
from distutils.core import setup
|
|
11
|
-
|
|
12
|
-
import os.path
|
|
13
|
-
|
|
14
|
-
readme = ''
|
|
15
|
-
here = os.path.abspath(os.path.dirname(__file__))
|
|
16
|
-
readme_path = os.path.join(here, 'README.rst')
|
|
17
|
-
if os.path.exists(readme_path):
|
|
18
|
-
with open(readme_path, 'rb') as stream:
|
|
19
|
-
readme = stream.read().decode('utf8')
|
|
20
|
-
|
|
21
|
-
setup(
|
|
22
|
-
long_description=readme,
|
|
23
|
-
name='lefthook',
|
|
24
|
-
version='0.1.2',
|
|
25
|
-
description='Lefthook installer',
|
|
26
|
-
python_requires='>=3.5',
|
|
27
|
-
project_urls={
|
|
28
|
-
'homepage': 'https://github.com/life4/lefthook',
|
|
29
|
-
'Lefthook': 'https://github.com/Arkweid/lefthook'
|
|
30
|
-
},
|
|
31
|
-
author='Gram (@orsinium)',
|
|
32
|
-
author_email='master_fess@mail.ru',
|
|
33
|
-
packages=['lefthook'],
|
|
34
|
-
package_data={},
|
|
35
|
-
install_requires=[],
|
|
36
|
-
)
|
/lefthook-0.1.2/lefthook.egg-info/dependency_links.txt → /lefthook-1.7.18/lefthook/__init__.py
RENAMED
|
File without changes
|