From b7049e6b15f9b79e11281e123a3dfa235fe38006 Mon Sep 17 00:00:00 2001 From: Brandon Barker Date: Tue, 13 Feb 2024 22:32:58 -0700 Subject: [PATCH] test format action... --- .github/workflows/ruff.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..e494ad0 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,29 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: format + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install ruff + - name: Lint with ruff + run: | + ruff check src/