Skip to content

Commit

Permalink
Add sort check for requirements.txt files
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Oct 2, 2023
1 parent bb0ca2a commit e2143d3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude: |
test-recipes |
test-skeleton
)/ |
.*\.(patch|diff) |
.*\.(patch|diff)
)
repos:
# generic verification and formatting
Expand All @@ -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 e2143d3

Please sign in to comment.