From 78d1c6556a9ab4ef898e351fe84f4cf3ce3706a0 Mon Sep 17 00:00:00 2001 From: Ben RdO Date: Wed, 29 Nov 2023 10:49:40 -0800 Subject: [PATCH] chore: add lint github workflow --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..5c7c50a6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: Lint + +on: + push: + pull_request: + branches: + - development + - main + +jobs: + formatting: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - run: python -m pip install --upgrade ruff + - run: ruff check . --diff + - run: ruff format . --diff