diff --git a/.github/workflows/ruff_lint.yml b/.github/workflows/ruff_lint.yml new file mode 100644 index 000000000..67fce6a4c --- /dev/null +++ b/.github/workflows/ruff_lint.yml @@ -0,0 +1,24 @@ +name: Lint and Commit + +on: + push: + branches: + - main + pull_request: + +env: + POETRY_VERSION: "1.6.1" + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + - run: pip install ruff + - run: | + ruff check . + ruff fix . + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'Style fixes by Ruff' \ No newline at end of file