From 5a7af23c47d09c5ec84f85ee7bf44ab213c31090 Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:16:39 +0200 Subject: [PATCH 1/6] added lint workflow --- .github/workflows/lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..e491384 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +name: Lint Python Code + +on: + pull_request: + branches: + - master + push: + branches: + - master + workflow_dispatch: + +jobs: + lint: # Name of the job + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - 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 32ca08c80d22e386476e3909947740822d65a1e2 Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:22:23 +0200 Subject: [PATCH 2/6] added lint workflow --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e491384..78bfc96 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,10 +3,10 @@ name: Lint Python Code on: pull_request: branches: - - master + - github-actions-tutorial push: branches: - - master + - github-actions-tutorial workflow_dispatch: jobs: From b0a5ac1021727ada02a8f474047f5630dbcb9b62 Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:26:15 +0200 Subject: [PATCH 3/6] added lint workflow --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 78bfc96..1723169 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,8 +13,8 @@ jobs: lint: # Name of the job runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: python-version: "3.13" cache: "pip" From 9dff2d5622036a44226c359310914fe42ad5e506 Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:28:39 +0200 Subject: [PATCH 4/6] added lint workflow --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index bb37264..ad88f28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,3 +58,8 @@ strict = true [[tool.mypy.overrides]] module = "feedparser" ignore_missing_imports = true + +[tool.ruff] +target-version = "py313" +line-length = 88 +select = ["E", "F", "W", "I"] # Add any other rules you want \ No newline at end of file From fc057d64e0cd6688be3a921adf651f451461beed Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:52:46 +0200 Subject: [PATCH 5/6] added dependabot --- .github/workflows/dependabot.yml | 11 +++++++++++ .github/workflows/lint.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..a7f8665 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1723169..57baf52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,7 @@ on: push: branches: - github-actions-tutorial + workflow_call: workflow_dispatch: jobs: From 39bb28d9b6074b91f3b1db01b677d932f9144f25 Mon Sep 17 00:00:00 2001 From: Martin Harnik Date: Mon, 22 Sep 2025 11:58:30 +0200 Subject: [PATCH 6/6] added dependabot --- .github/{workflows => }/dependabot.yml | 0 .github/workflows/lint.yml | 4 +--- 2 files changed, 1 insertion(+), 3 deletions(-) rename .github/{workflows => }/dependabot.yml (100%) diff --git a/.github/workflows/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from .github/workflows/dependabot.yml rename to .github/dependabot.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 57baf52..dd57b0c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,6 +25,4 @@ jobs: python -m pip install ruff - name: Run Ruff - run: ruff check --output-format=github - - + run: ruff check --output-format=github \ No newline at end of file