Adding upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
18c908e4f3
commit
c0d06915b7
199 changed files with 14930 additions and 0 deletions
0
pre_commit/resources/__init__.py
Normal file
0
pre_commit/resources/__init__.py
Normal file
1
pre_commit/resources/empty_template_.npmignore
Normal file
1
pre_commit/resources/empty_template_.npmignore
Normal file
|
@ -0,0 +1 @@
|
|||
*
|
7
pre_commit/resources/empty_template_Cargo.toml
Normal file
7
pre_commit/resources/empty_template_Cargo.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "__fake_crate"
|
||||
version = "0.0.0"
|
||||
|
||||
[[bin]]
|
||||
name = "__fake_cmd"
|
||||
path = "main.rs"
|
6
pre_commit/resources/empty_template_Makefile.PL
Normal file
6
pre_commit/resources/empty_template_Makefile.PL
Normal file
|
@ -0,0 +1,6 @@
|
|||
use ExtUtils::MakeMaker;
|
||||
|
||||
WriteMakefile(
|
||||
NAME => "PreCommitDummy",
|
||||
VERSION => "0.0.1",
|
||||
);
|
9
pre_commit/resources/empty_template_environment.yml
Normal file
9
pre_commit/resources/empty_template_environment.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
# This cannot be empty as otherwise no environment will be created.
|
||||
# We're using openssl here as it is available on all system and will
|
||||
# most likely be always installed anyways.
|
||||
# See https://github.com/conda/conda/issues/9487
|
||||
- openssl
|
3
pre_commit/resources/empty_template_main.go
Normal file
3
pre_commit/resources/empty_template_main.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
package main
|
||||
|
||||
func main() {}
|
1
pre_commit/resources/empty_template_main.rs
Normal file
1
pre_commit/resources/empty_template_main.rs
Normal file
|
@ -0,0 +1 @@
|
|||
fn main() {}
|
4
pre_commit/resources/empty_template_package.json
Normal file
4
pre_commit/resources/empty_template_package.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "pre_commit_dummy_package",
|
||||
"version": "0.0.0"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'pre_commit_dummy_package'
|
||||
s.version = '0.0.0'
|
||||
s.summary = 'dummy gem for pre-commit hooks'
|
||||
s.authors = ['Anthony Sottile']
|
||||
end
|
4
pre_commit/resources/empty_template_setup.py
Normal file
4
pre_commit/resources/empty_template_setup.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
setup(name='pre-commit-dummy-package', version='0.0.0')
|
44
pre_commit/resources/hook-tmpl
Executable file
44
pre_commit/resources/hook-tmpl
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/usr/bin/env python3
|
||||
# File generated by pre-commit: https://pre-commit.com
|
||||
# ID: 138fd403232d2ddd5efb44317e38bf03
|
||||
import os
|
||||
import sys
|
||||
|
||||
# we try our best, but the shebang of this script is difficult to determine:
|
||||
# - macos doesn't ship with python3
|
||||
# - windows executables are almost always `python.exe`
|
||||
# therefore we continue to support python2 for this small script
|
||||
if sys.version_info < (3, 3):
|
||||
from distutils.spawn import find_executable as which
|
||||
else:
|
||||
from shutil import which
|
||||
|
||||
# work around https://github.com/Homebrew/homebrew-core/issues/30445
|
||||
os.environ.pop('__PYVENV_LAUNCHER__', None)
|
||||
|
||||
# start templated
|
||||
INSTALL_PYTHON = ''
|
||||
ARGS = ['hook-impl']
|
||||
# end templated
|
||||
ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__))))
|
||||
ARGS.append('--')
|
||||
ARGS.extend(sys.argv[1:])
|
||||
|
||||
DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?'
|
||||
if os.access(INSTALL_PYTHON, os.X_OK):
|
||||
CMD = [INSTALL_PYTHON, '-mpre_commit']
|
||||
elif which('pre-commit'):
|
||||
CMD = ['pre-commit']
|
||||
else:
|
||||
raise SystemExit(DNE)
|
||||
|
||||
CMD.extend(ARGS)
|
||||
if sys.platform == 'win32': # https://bugs.python.org/issue19124
|
||||
import subprocess
|
||||
|
||||
if sys.version_info < (3, 7): # https://bugs.python.org/issue25942
|
||||
raise SystemExit(subprocess.Popen(CMD).wait())
|
||||
else:
|
||||
raise SystemExit(subprocess.call(CMD))
|
||||
else:
|
||||
os.execvp(CMD[0], CMD)
|
BIN
pre_commit/resources/rbenv.tar.gz
Normal file
BIN
pre_commit/resources/rbenv.tar.gz
Normal file
Binary file not shown.
BIN
pre_commit/resources/ruby-build.tar.gz
Normal file
BIN
pre_commit/resources/ruby-build.tar.gz
Normal file
Binary file not shown.
BIN
pre_commit/resources/ruby-download.tar.gz
Normal file
BIN
pre_commit/resources/ruby-download.tar.gz
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue