Skip to content

Only allow docs to be built from main #11

Only allow docs to be built from main

Only allow docs to be built from main #11

Workflow file for this run

name: ruff
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ruff-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
src: "./dfttoolkit"
args: "check --fix --config ./pyproject.toml --output-format=github"
ruff-format:
runs-on: ubuntu-latest
needs: ruff-lint
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
src: "./dfttoolkit"
args: "format --config ./pyproject.toml"