From 5210cb44f87ec361280e02465f67a6af4da13423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sun, 5 May 2024 16:46:39 +0100 Subject: [PATCH 1/2] Add dependabot config --- .github/dependabot.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ecdad45 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keep GitHub Actions up to date with GitHub's Dependabot... +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: weekly + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: weekly From 663fbb066c201fdaeee601db83e75fbd6daab7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sun, 5 May 2024 16:47:59 +0100 Subject: [PATCH 2/2] Install ruff from pyproject.toml --- .github/workflows/pythonpackage.yml | 6 +++--- pyproject.toml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index ac00422..34fb5b3 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -20,10 +20,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip mypy "cython>=0.29" - pip install -U pip flake8 setuptools + python -m pip install --upgrade pip mypy "cython>=0.29" setuptools + pip install -U pip ".[dev]" - name: Style checks - run: python -m flake8 + run: python -m ruff check . - name: Typing checks run: python -m mypy patiencediff - name: Build diff --git a/pyproject.toml b/pyproject.toml index 3bef8b7..91d2fb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,3 +67,8 @@ line-length = 79 [tool.ruff.pydocstyle] convention = "google" + +[project.optional-dependencies] +dev = [ + "ruff==0.4.3" +]