Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MRossa157 committed Dec 4, 2024
1 parent b4a187d commit f30d974
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ruff-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Ruff Linter

on:
pull_request:
branches:
- main
push:
branches:
- dev

jobs:
ruff:
name: Lint with Ruff
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.7'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 - # Устанавливаем Poetry
echo "$HOME/.local/bin" >> $GITHUB_PATH # Добавляем Poetry в PATH
- name: Install dependencies using Poetry
run: |
poetry install
- name: Run Ruff linter
run: |
ruff check . # Запускаем линтер на текущей директории

0 comments on commit f30d974

Please sign in to comment.