Merge pull request #20 from elsbrock/dependabot/github_actions/action… #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lint" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
ruff: | |
name: "Ruff" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout the repository" | |
uses: "actions/[email protected]" | |
- name: "Set up Python" | |
uses: actions/[email protected] | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: "Install requirements" | |
run: python3 -m pip install poetry && poetry install --no-root | |
- name: Ruff | |
run: poetry run ruff check . |