From c6f60c7e71009831faeff7f458dac8c8c355ae5d Mon Sep 17 00:00:00 2001 From: adityamehra Date: Mon, 8 Jun 2026 12:40:58 -0700 Subject: [PATCH 1/2] ci: add lint workflow using ruff Adds a CI lint workflow that runs ruff check and ruff format --check on every push and PR to main. Mirrors splunk-otel-python-contrib's ci-lint setup with pinned action hashes. Co-authored-by: Cursor --- .github/workflows/ci-lint.yaml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci-lint.yaml diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml new file mode 100644 index 0000000..8c36490 --- /dev/null +++ b/.github/workflows/ci-lint.yaml @@ -0,0 +1,39 @@ +name: CI - Lint + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +env: + PYTHONUNBUFFERED: "1" + FORCE_COLOR: "1" + +jobs: + lint: + name: Lint Code + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 + with: + python-version: '3.12' + + - name: Install Ruff + run: | + python -m pip install --upgrade pip + pip install ruff==0.14.1 + + - name: Run linting + run: ruff check . + + - name: Check formatting + run: ruff format --check . From b70664589cce013ceb4a5842d267ddc9265af7f5 Mon Sep 17 00:00:00 2001 From: adityamehra Date: Tue, 9 Jun 2026 14:34:41 -0700 Subject: [PATCH 2/2] ci(lint): pin ruff to 0.12.8 to match galileo-python lock file Co-authored-by: Cursor --- .github/workflows/ci-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index 8c36490..ac77af1 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -30,7 +30,7 @@ jobs: - name: Install Ruff run: | python -m pip install --upgrade pip - pip install ruff==0.14.1 + pip install ruff==0.12.8 - name: Run linting run: ruff check .