Skip to content

Commit

Permalink
Add sort check for requirements.txt files (#5022)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored Oct 3, 2023
1 parent 7d3b0c5 commit 9129862
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ repos:
)
# catch git merge/rebase problems
- id: check-merge-conflict
# sort requirements files
- id: file-contents-sorter
files: ^tests/requirements.*\.txt
args: [--unique]
# Python verification and formatting
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
Expand Down
2 changes: 0 additions & 2 deletions tests/requirements-linux.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# conda-build supplemental test dependencies
# run as 'conda install -c defaults --file tests/requirements-linux.txt'
patch
patchelf
shellcheck
2 changes: 0 additions & 2 deletions tests/requirements-macos.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# conda-build supplemental test dependencies
# run as 'conda install -c defaults --file tests/requirements-macos.txt'
patch
shellcheck
2 changes: 0 additions & 2 deletions tests/requirements-windows.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# conda-build supplemental test dependencies
# run as 'conda install -c defaults --file tests/requirements-windows.txt'
m2-git
m2-patch
4 changes: 1 addition & 3 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# conda-build test dependencies
# run as 'conda install -c defaults --file tests/requirements.txt'
anaconda-client
beautifulsoup4
chardet
conda >=4.13
conda-forge::allure-pytest
conda-index
conda-package-handling
conda-verify
Expand All @@ -27,7 +26,6 @@ pytest-replay
pytest-rerunfailures
pytest-xdist
python-libarchive-c
conda-forge::allure-pytest
pytz
requests
ripgrep
Expand Down

0 comments on commit 9129862

Please sign in to comment.