diff --git a/recipes/pre-commit/meta.yaml b/recipes/pre-commit/meta.yaml new file mode 100644 index 0000000000000..7e542421d2d27 --- /dev/null +++ b/recipes/pre-commit/meta.yaml @@ -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