-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch linters CI to use pre-commit command line
Using pre-commit-uv for fast installation
- Loading branch information
1 parent
6e0c5d6
commit 3b72c71
Showing
3 changed files
with
12 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,31 +43,17 @@ jobs: | |
|
||
linters: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} with uv | ||
- name: Set up Python 3.10 with uv | ||
uses: drivendataorg/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.10" | ||
cache: 'packages' | ||
|
||
- name: Install dependencies | ||
run: | | ||
uv sync | ||
- name: Install linter deps | ||
- name: Run pre-commit checks | ||
run: | | ||
uv pip install -r tests/requirements-linters.txt | ||
- name: Run isort | ||
run: | | ||
uv run isort --version | ||
uv run isort -c . | ||
- name: Run flake8 | ||
if: failure() || success() | ||
run: | | ||
uv run flake8 --version | ||
uv run flake8 | ||
- uses: psf/black@stable | ||
with: | ||
version: "22.3.0" | ||
if: failure() || success() | ||
uv run pre-commit run --all --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters