Skip to content

Commit e103bff

Browse files
authored
ci: update ruff pre-commit (#9039)
1 parent dea6f97 commit e103bff

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
type: string
99

1010
env:
11-
BANDIT_VERSION: 1.7.8
1211
PROJECT_PATH: 'label_studio/'
1312
REPORT_PATH: 'bandit_results/bandit_security_report.txt'
1413
ACTIONS_STEP_DEBUG: '${{ secrets.ACTIONS_STEP_DEBUG }}'
@@ -33,7 +32,7 @@ jobs:
3332

3433
- name: Install Bandit
3534
run: |
36-
pip install bandit==$BANDIT_VERSION
35+
pip install bandit
3736
3837
- name: Run Bandit
3938
run: |

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424

2525
- uses: pre-commit/action@v3.0.1
2626
with:
27-
extra_args: ruff --all-files --hook-stage pre-push
27+
extra_args: ruff-check --all-files --hook-stage pre-push

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
default_stages: [ pre-push ]
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.0.285
4+
rev: v0.14.9
55
hooks:
6-
- id: ruff
7-
args: [ --no-fix, --show-fixes, --show-source ]
6+
- id: ruff-check
7+
args: [ --fix ]
88
- repo: https://github.com/grantjenks/blue
99
rev: v0.9.1
1010
hooks:

.pre-commit-dev.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
default_stages: [ manual ]
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.0.285
4+
rev: v0.14.9
55
hooks:
6-
- id: ruff
7-
args: [ --fix, --show-fixes ]
6+
# Run the linter.
7+
- id: ruff-check
8+
args: [ --fix ]
9+
# Run the formatter.
10+
- id: ruff-format
811
- repo: https://github.com/grantjenks/blue
912
rev: v0.9.1
1013
hooks:

0 commit comments

Comments
 (0)