Skip to content

Python Example

Repository: janitor-sh/python-example

Terminal window
python3 main.py
Terminal window
janitor --no-commit

The example workflow runs on pushes and pull requests to main and executes janitor using Ruff:

- name: Install ruff
run: python -m pip install ruff
- uses: janitor-sh/action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tool: "ruff"
- name: Push Janitor commit
run: git push