Python Example
Repository: janitor-sh/python-example
Run locally
Section titled “Run locally”python3 main.pyValidate janitor locally
Section titled “Validate janitor locally”janitor --no-commitCI behavior
Section titled “CI behavior”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