From 1d42712ea23d43859d438cf4f6a303c23e6cba6b Mon Sep 17 00:00:00 2001 From: Sanjay-python27 Date: Wed, 26 Aug 2026 17:16:02 +0530 Subject: [PATCH 1/2] Add Python lint workflow --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c034887 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Lint Python Code + +on: + pull_request: + branches: + - master + + push: + branches: + - master + + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + cache: "pip" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install ruff + + - name: Run Ruff + run: ruff check --output-format=github From b244f8f625dfd89a2d532520f5873efd391bb03c Mon Sep 17 00:00:00 2001 From: Sanjay-python27 Date: Wed, 26 Aug 2026 17:21:44 +0530 Subject: [PATCH 2/2] Add working branch for linting --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c034887..61b0057 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,7 @@ on: pull_request: branches: - master + - github-actions-tutorial push: branches: