Skip to content

Commit

Permalink
Update pre-commit-config and linter action (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni authored Aug 8, 2024
1 parent 3bc706c commit 227a381
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Check code with ruff
uses: chartboost/ruff-action@v1
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check $(git ls-files '*.py')
version: 0.5.6
args: check
src: "."
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
rev: v0.5.6
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
stages: [manual]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
rev: v0.41.0
hooks:
- id: markdownlint
args:
Expand Down

0 comments on commit 227a381

Please sign in to comment.