From 438df40211a7b0c6030e2ac84eef224a34b33341 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 14 May 2024 15:24:04 -0400 Subject: [PATCH] Add ruff CI job (#64) --- .github/workflows/lint.yml | 8 ++++++++ pyproject.toml | 3 +++ 2 files changed, 11 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..ef06d34 --- /dev/null +++ b/.github/workflows/lint.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 80d0d21..6937882 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,3 +65,6 @@ pythonpath = "src" addopts = [ "--import-mode=importlib", ] + +[tool.ruff] +line-length = 120