diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d01956bb79e11..79c95784ff500 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,3 +65,12 @@ repos: v0\.| v1\.0\.| v1\.1\.[012]) +- repo: local + hooks: + - id: pip_to_conda + name: Generate pip dependency from conda + description: This hook checks if the conda environment.yml and requirements-dev.txt are equal + language: system + entry: python -m scripts.generate_pip_deps_from_conda + files: ^(environment.yml|requirements-dev.txt)$ + pass_filenames: false