diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bf6731b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @kenany diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..efdba3e --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["local>pangeacyber/.github:renovate-config"], + "automerge": true, + "automergeStrategy": "rebase", + "packageRules": [ + { + "description": "Don't offer Python updates.", + "matchDepNames": ["python"], + "enabled": false + } + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e96b68b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,65 @@ +name: CI + +on: + push: + branches: + - main + + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + + merge_group: + + workflow_dispatch: + +permissions: + contents: read + +jobs: + mypy: + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v4.2.1 + + - name: Install uv + uses: astral-sh/setup-uv@v3.1.7 + with: + enable-cache: true + + - name: Setup Python + uses: actions/setup-python@v5.2.0 + with: + python-version-file: .python-version + + - name: Install dependencies + run: uv sync --all-extras --dev + + - name: mypy + run: uv run mypy . + + ruff: + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v4.2.1 + + - name: Install uv + uses: astral-sh/setup-uv@v3.1.7 + with: + enable-cache: true + + - name: Setup Python + uses: actions/setup-python@v5.2.0 + with: + python-version-file: .python-version + + - name: Install dependencies + run: uv sync --all-extras --dev + + - name: ruff + run: uv run ruff check --output-format=github .