Skip to content

Commit

Permalink
Merge pull request #4 from Jurkash/workflows
Browse files Browse the repository at this point in the history
Create lint.yml
  • Loading branch information
Jurkash authored Jul 13, 2024
2 parents 58a7530 + 3502590 commit c3fe648
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint

on:
push:
paths:
- "**.py"
- requirements.txt
pull_request:
paths:
- "**.py"
- requirements.txt

jobs:
python:
name: Python
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v4

- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: 📦 Install requirements
run: python3 -m pip install -r requirements.txt

- name: ⚙️ Lint
run: python3 -m ruff check .

- name: 💅 Format
run: python3 -m ruff format . --check

0 comments on commit c3fe648

Please # to comment.