ci: Add linter, minor lint fixes

This commit is contained in:
2026-06-29 15:07:28 +05:30
parent 22b5cd8ced
commit bcf99c66cd
4 changed files with 70 additions and 4 deletions

26
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Lint
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.14"
- name: Run Ruff Check
run: uv run ruff check .
- name: Run Ruff Format Check
run: uv run ruff format --check .