Skip to content

Commit

Permalink
add pre-commit configuration for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
maclick committed May 22, 2023
1 parent 1c9132f commit 6e1c710
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Ruff
on:
push:
branches:
- "*"
- master
pull_request:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.269
hooks:
- id: ruff
files: ^oioioi/
args: [ --fix, --exit-non-zero-on-fix ]
1 change: 1 addition & 0 deletions requirements_static.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ isort==5.6.4
ruff==0.0.269
elastic-apm
python-memcached
pre-commit==3.3.2

0 comments on commit 6e1c710

Please sign in to comment.