Skip to content
Snippets Groups Projects
Commit d460a340 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[deps][conda] add pre-commit as a dependency

parent 5d3d5f65
No related branches found
No related tags found
1 merge request!212Ci checks
Pipeline #49136 failed
...@@ -1019,7 +1019,6 @@ def check(root): ...@@ -1019,7 +1019,6 @@ def check(root):
if os.path.isfile(path): if os.path.isfile(path):
from ..bootstrap import run_cmdline from ..bootstrap import run_cmdline
run_cmdline(["pip", "install", "pre-commit"])
try: try:
backup = os.environ.get("SKIP", "") backup = os.environ.get("SKIP", "")
os.environ["SKIP"] = "sphinx-build,sphinx-doctest" os.environ["SKIP"] = "sphinx-build,sphinx-doctest"
......
...@@ -51,6 +51,7 @@ requirements: ...@@ -51,6 +51,7 @@ requirements:
- psutil - psutil
- tabulate - tabulate
- python-graphviz - python-graphviz
- pre-commit
test: test:
requires: requires:
......
...@@ -2,3 +2,4 @@ repodata-patches ...@@ -2,3 +2,4 @@ repodata-patches
python-gitlab python-gitlab
untokenize untokenize
docformatter docformatter
pre-commit
{% set name = "pre-commit" %}
{% set version = "2.11.1" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: de55c5c72ce80d79106e48beb1b54104d16495ce7f95b0c7b13d4784193a00af
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- pip
- python
run:
- python
about:
home: The package home page
license: MIT
license_family: MIT
license_file:
summary: "A framework for managing and maintaining multi-language pre-commit hooks."
doc_url:
dev_url:
extra:
recipe-maintainers:
- amohammadi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment