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

Install only the needed lint tool in style checks CI #553

Closed
wants to merge 3 commits into from
Closed
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
17 changes: 6 additions & 11 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
python-version: '3.10'
- name: Install pip dependencies
run: |
pip install --pre 'rasterio>=1.0.16'
pip install .[style]
pip install black
pip list
- name: Run black checks
run: black . --check --diff
Expand All @@ -38,8 +37,7 @@ jobs:
python-version: '3.10'
- name: Install pip dependencies
run: |
pip install --pre 'rasterio>=1.0.16'
pip install .[style]
pip install flake8
pip list
- name: Run flake8 checks
run: flake8
Expand All @@ -55,8 +53,7 @@ jobs:
python-version: '3.10'
- name: Install pip dependencies
run: |
pip install --pre 'rasterio>=1.0.16'
pip install .[style]
pip install isort[colors]
pip list
- name: Run isort checks
run: isort . --check --diff
Expand All @@ -72,8 +69,7 @@ jobs:
python-version: '3.10'
- name: Install pip dependencies
run: |
pip install --pre 'rasterio>=1.0.16'
pip install .[style]
pip install pydocstyle[toml]
pip list
- name: Run pydocstyle checks
run: pydocstyle
Expand All @@ -86,11 +82,10 @@ jobs:
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: '3.10'
- name: Install pip dependencies
run: |
pip install --pre 'rasterio>=1.0.16'
pip install .[style]
pip install pyupgrade
pip list
- name: Run pyupgrade checks
run: pyupgrade --py37-plus $(find . -name "*.py")