Skip to content

Commit 422030b

Browse files
authored
Add generate pip dependency's from conda to pre-commit (#36531)
1 parent 13f0055 commit 422030b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.pre-commit-config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ repos:
4848
v0\.|
4949
v1\.0\.|
5050
v1\.1\.[012])
51+
- repo: local
52+
hooks:
53+
- id: pip_to_conda
54+
name: Generate pip dependency from conda
55+
description: This hook checks if the conda environment.yml and requirements-dev.txt are equal
56+
language: system
57+
entry: python -m scripts.generate_pip_deps_from_conda
58+
files: ^(environment.yml|requirements-dev.txt)$
59+
pass_filenames: false

0 commit comments

Comments
 (0)