Skip to content

Commit

Permalink
Issue #16 #25 add ruff as pre-commit hook too
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Feb 1, 2024
1 parent 714a4e5 commit d758f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'isort==5.12.0' ruff
python -m pip install 'isort==5.12.0' 'ruff==0.1.15'
- name: isort
run: python -m isort . --check --diff
# - name: black
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ repos:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.15
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]

0 comments on commit d758f56

Please sign in to comment.