Skip to content

Commit 0c79fa7

Browse files
authored
Merge pull request #12 from khoshov/feature/add_ruff_check_for_GitHub_actions
Feature/add ruff check for git hub actions
2 parents 6831b8b + 39a45fc commit 0c79fa7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
lint:
7-
name: ruff lint with fix
7+
name: ruff lint
88
runs-on: ubuntu-latest
99
steps:
1010
- name: checkout repo
@@ -21,5 +21,11 @@ jobs:
2121
uv venv .venv
2222
UV_VENV=.venv uv pip install ruff
2323
24-
- name: run ruff with autofix
25-
run: UV_VENV=.venv uv run -- ruff check . --fix
24+
- name: run ruff check
25+
run: UV_VENV=.venv uv run -- ruff check .
26+
27+
- name: check formatting
28+
run: UV_VENV=.venv uv run -- ruff format --check .
29+
30+
- name: run ruff lint
31+
run: UV_VENV=.venv uv run -- ruff check .

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ repos:
33
rev: v0.11.10
44
hooks:
55
- id: ruff
6-
args: [--fix]
76
- id: ruff-format

0 commit comments

Comments
 (0)