diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a7f8665 --- /dev/null +++ b/.github/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 new file mode 100644 index 0000000..dd57b0c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Lint Python Code + +on: + pull_request: + branches: + - github-actions-tutorial + push: + branches: + - github-actions-tutorial + workflow_call: + workflow_dispatch: + +jobs: + lint: # Name of the job + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + 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 \ No newline at end of file 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