Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sort check for requirements.txt files #5022

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading