From 74444d35df05a086bd143b1f3faa85657c17b098 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Tue, 16 Jul 2024 12:28:35 +0900 Subject: [PATCH] Update and rename black.yml to ruff.yml (#120) * Update and rename black.yml to ruff.yml * temp ignore some lint * Update pyproject.toml --- .github/workflows/black.yml | 10 ---------- .github/workflows/ruff.yml | 8 ++++++++ pyproject.toml | 2 ++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 .github/workflows/black.yml create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index 0a8b8e9..0000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Lint - -on: [push, pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: psf/black@stable \ No newline at end of file diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..ef06d34 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,8 @@ +name: Ruff +on: [ push, pull_request ] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chartboost/ruff-action@v1 diff --git a/pyproject.toml b/pyproject.toml index b4e9ffd..8f04858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,3 +20,5 @@ requires-python = ">=3.9" [project.urls] Homepage = "https://github.com/open-spaced-repetition/fsrs-optimizer" +[tool.ruff.lint] +ignore = ["F405", "F403", "E712", "F541", "E722", "E741"]