feat: add ruff linter & formatter (#22576)

* chore: add ruff linter with base config

* ci: add ruff pre-commit hook

* ci: add ruff github actions workflow

* ci: run ruff only on changed files
This commit is contained in:
Shamil
2026-03-16 01:22:27 +03:00
committed by GitHub
parent bc5b3ec6b8
commit b73010bb36
3 changed files with 84 additions and 0 deletions

8
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff
args: [--fix, backend]
- id: ruff-format
args: [backend]