Skip to content

Commit

Permalink
run ruff through ruff-pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Mar 29, 2024
1 parent dcfb9f9 commit db80ea7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install requirements
run: pip install -r requirements/dev.txt
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.1

Expand Down
18 changes: 5 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: local
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
hooks:
- id: ruff format
name: ruff format
entry: ruff format
language: system
types: [python]

- id: ruff check
name: ruff check
entry: ruff check
language: system
types: [python]
args: [--fix]
- id: ruff-format
- id: ruff
args: [ --fix ]

0 comments on commit db80ea7

Please sign in to comment.