Skip to content

🔧 CI: added black, ruff and docs #3

🔧 CI: added black, ruff and docs

🔧 CI: added black, ruff and docs #3

Workflow file for this run

name: format, lint
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install poetry
poetry install
- name: Check black formatting
run: poetry run black --check --diff --config pyproject.toml sphinx_performance
- name: Check ruff linting
run: poetry run ruff check sphinx_performance
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install poetry
poetry install --only docs
- name: Check black formatting
working-directory: ./docs
run: poetry run make html