Skip to content

Getting Started

  1. Run janitor from the root of your repository.

    Terminal window
    janitor
  2. For local safety-first runs, explicitly disable commit creation.

    Terminal window
    janitor --no-commit
  3. Scope to a single tool when needed.

    Terminal window
    janitor --tool ruff

Default behavior depends on platform detection:

  • GitHub Actions and GitLab CI: auto-commit is enabled by default.
  • Local terminal runs: auto-commit is disabled by default.

Override this behavior with flags:

  • --auto-commit: force auto-commit.
  • --no-commit: force no commit.

--auto-commit and --no-commit cannot be used together.

Current supported values for --tool:

  • ruff
  • biome
  • clippy
  • cargo-fmt
  • rumdl
Terminal window
# Default run (platform-aware commit behavior)
janitor
# Local run with no commit
janitor --no-commit
# Force auto commit in local testing
janitor --auto-commit
# Run only Biome
janitor --tool biome