diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index d7be890..dcf74d2 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -11,7 +11,6 @@ jobs: runs-on: ubuntu-latest outputs: lua: ${{ steps.changes.outputs.lua }} - python: ${{ steps.changes.outputs.python }} markdown: ${{ steps.changes.outputs.markdown }} steps: - uses: actions/checkout@v4 @@ -25,10 +24,6 @@ jobs: - '*.lua' - '.luarc.json' - '*.toml' - python: - - 'scripts/**/*.py' - - 'pyproject.toml' - - 'uv.lock' markdown: - '*.md' @@ -72,48 +67,6 @@ jobs: directories: lua configpath: .luarc.json - python-format: - name: Python Format Check - runs-on: ubuntu-latest - needs: changes - if: ${{ needs.changes.outputs.python == 'true' }} - steps: - - uses: actions/checkout@v4 - - name: Install uv - uses: astral-sh/setup-uv@v4 - - name: Install ruff - run: uv tool install ruff - - name: Check Python formatting with ruff - run: ruff format --check . - - python-lint: - name: Python Lint Check - runs-on: ubuntu-latest - needs: changes - if: ${{ needs.changes.outputs.python == 'true' }} - steps: - - uses: actions/checkout@v4 - - name: Install uv - uses: astral-sh/setup-uv@v4 - - name: Install ruff - run: uv tool install ruff - - name: Lint Python files with ruff - run: ruff check . - - python-typecheck: - name: Python Type Check - runs-on: ubuntu-latest - needs: changes - if: ${{ needs.changes.outputs.python == 'true' }} - steps: - - uses: actions/checkout@v4 - - name: Install uv - uses: astral-sh/setup-uv@v4 - - name: Install dependencies with mypy - run: uv sync --dev - - name: Type check Python files with mypy - run: uv run mypy . - markdown-format: name: Markdown Format Check runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4706ce4..3477598 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,26 +9,6 @@ repos: files: \.lua$ pass_filenames: true - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.3 - hooks: - - id: ruff-format - name: ruff (format) - files: \.py$ - - id: ruff - name: ruff (lint imports) - args: ['--fix', '--select=I'] - files: \.py$ - - - repo: local - hooks: - - id: mypy - name: mypy (type check) - entry: uv run mypy - language: system - args: ['.'] - pass_filenames: false - - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: