mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-07 19:08:30 +03:00
34 lines
737 B
YAML
34 lines
737 B
YAML
name: Ruff Formatting & Linting
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths-ignore:
|
|
- "README.md"
|
|
- ".github"
|
|
- "poetry.lock"
|
|
- "scripts/settings"
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths-ignore:
|
|
- "README.md"
|
|
- ".github"
|
|
- "poetry.lock"
|
|
- "scripts/settings"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ruff
|
|
|
|
- name: Run Ruff
|
|
run: ruff check --output-format=github . && ruff format --check |