forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename existing pre_commit to pre-commit
Copied verbatim from conda-forge/pre_commit, only changing the package name. See conda-forge/pre_commit-feedstock#35
- Loading branch information
1 parent
ad2858b
commit b1fcd32
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{% set name = "pre-commit" %} | ||
{% set version = "1.12.0" %} | ||
{% set hash_type = "sha256" %} | ||
{% set hash = "81fe7b1b0cba93e7d7aa3cfbfd55f5280d3639e4fcb14bf9d1b95ab35f41cf0d" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
fn: {{ name }}-v{{ version }}.tar.gz | ||
url: https://github.com/pre-commit/pre-commit/archive/v{{ version }}.tar.gz | ||
{{ hash_type }}: {{ hash }} | ||
|
||
build: | ||
number: 1 | ||
script: pip install . --no-deps --ignore-installed | ||
entry_points: | ||
- pre-commit = pre_commit.main:main | ||
- pre-commit-validate-config = pre_commit.clientlib:validate_config_main | ||
- pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main | ||
|
||
requirements: | ||
build: | ||
- pip | ||
- python | ||
|
||
run: | ||
- aspy.yaml | ||
- cached-property | ||
- cfgv >=1.0.0 | ||
- identify >=1.0.0 | ||
- importlib_metadata | ||
- importlib_resources # [py<37] | ||
- nodeenv >=0.11.1 | ||
- python | ||
- pyyaml | ||
- setuptools | ||
- six | ||
- toml | ||
- virtualenv | ||
|
||
test: | ||
imports: | ||
- pre_commit | ||
- pre_commit.commands | ||
- pre_commit.languages | ||
commands: | ||
- pre-commit --help | ||
- pre-commit-validate-config --help | ||
- pre-commit-validate-manifest --help | ||
|
||
about: | ||
home: http://pre-commit.com/ | ||
license: MIT | ||
license_file: LICENSE | ||
summary: 'A framework for managing and maintaining multi-language pre-commit hooks.' | ||
license_family: MIT | ||
dev_url: https://github.com/pre-commit/pre-commit | ||
doc_url: https://github.com/pre-commit/pre-commit | ||
|
||
extra: | ||
recipe-maintainers: | ||
- nicoddemus |