Skip to content

Commit 6e1c710

Browse files
committed
add pre-commit configuration for ruff
1 parent 1c9132f commit 6e1c710

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Ruff
33
on:
44
push:
55
branches:
6-
- "*"
6+
- master
77
pull_request:
88
workflow_dispatch:
99

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.0.269
4+
hooks:
5+
- id: ruff
6+
files: ^oioioi/
7+
args: [ --fix, --exit-non-zero-on-fix ]

requirements_static.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ isort==5.6.4
33
ruff==0.0.269
44
elastic-apm
55
python-memcached
6+
pre-commit==3.3.2

0 commit comments

Comments
 (0)