Skip to content

Commit 24a23e8

Browse files
committed
🔧 make sure all conda-envs files generate requirements-dev
1 parent 250fc9f commit 24a23e8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ repos:
6969
language: python
7070
name: Sort dependencies in conda envs
7171
types: [yaml]
72-
- id: pip-to-conda
72+
- id: pip-from-conda
7373
additional_dependencies: [pyyaml]
7474
entry: python scripts/generate_pip_deps_from_conda.py
75-
files: ^(conda-envs/environment-dev-py38\.yml|requirements-dev\.txt)$
75+
files: ^conda-envs/
7676
language: python
7777
name: Generate pip dependency from conda
78-
pass_filenames: false
7978
- id: no-relative-imports
8079
name: No relative imports
8180
entry: from \.[\.\w]* import

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is auto-generated from environment-dev-py38.yml, do not modify.
1+
# This file is auto-generated from by scripts/generate_pip_deps_from_conda.py, do not modify.
22
# See that file for comments about the need/usage of each dependency.
33

44
h5py>=2.7

scripts/generate_pip_deps_from_conda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Check requirements-dev.txt has been generated from conda-envs/environment-dev-py3*.yml
3535
3636
This is intended to be used as a pre-commit hook, see `.pre-commit-config.yaml`.
37-
You can run it manually with `pre-commit run pip-to-conda --all`.
37+
You can run it manually with `pre-commit run pip-from-conda --all`.
3838
"""
3939
import argparse
4040
import re

0 commit comments

Comments
 (0)