| [workspace] | |
| members = ["cargo:."] | |
| packages = ["ruff"] | |
| # Config for 'dist' | |
| [dist] | |
| # We customize installation of `cargo-dist` in `release.yml` to avoid `curl | sh` | |
| allow-dirty = ["ci"] | |
| # The preferred dist version to use in CI (Cargo.toml SemVer syntax) | |
| cargo-dist-version = "0.31.0" | |
| # Whether to consider the binaries in a package for distribution (defaults true) | |
| dist = false | |
| # CI backends to support | |
| ci = "github" | |
| # The installers to generate for each app | |
| installers = ["shell", "powershell"] | |
| # The archive format to use for windows builds (defaults .zip) | |
| windows-archive = ".zip" | |
| # The archive format to use for non-windows builds (defaults .tar.xz) | |
| unix-archive = ".tar.gz" | |
| # Target platforms to build apps for (Rust target-triple syntax) | |
| targets = [ | |
| "aarch64-apple-darwin", | |
| "aarch64-unknown-linux-gnu", | |
| "aarch64-unknown-linux-musl", | |
| "aarch64-pc-windows-msvc", | |
| "arm-unknown-linux-musleabihf", | |
| "armv7-unknown-linux-gnueabihf", | |
| "armv7-unknown-linux-musleabihf", | |
| "x86_64-apple-darwin", | |
| "powerpc64le-unknown-linux-gnu", | |
| "riscv64gc-unknown-linux-gnu", | |
| "s390x-unknown-linux-gnu", | |
| "x86_64-unknown-linux-gnu", | |
| "x86_64-unknown-linux-musl", | |
| "x86_64-pc-windows-msvc", | |
| "i686-unknown-linux-gnu", | |
| "i686-unknown-linux-musl", | |
| "i686-pc-windows-msvc" | |
| ] | |
| # Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true) | |
| auto-includes = false | |
| # Whether dist should create a Github Release or use an existing draft | |
| create-release = true | |
| # Which actions to run on pull requests | |
| pr-run-mode = "plan" | |
| # Whether CI should trigger releases with dispatches instead of tag pushes | |
| dispatch-releases = true | |
| # Which phase dist should use to create the GitHub release | |
| github-release = "announce" | |
| # Whether to enable GitHub Attestations | |
| github-attestations = true | |
| # When to generate GitHub Attestations | |
| github-attestations-phase = "announce" | |
| # Patterns to attest when creating attestations for release artifacts | |
| github-attestations-filters = ["*.json", "*.sh", "*.ps1", "*.zip", "*.tar.gz"] | |
| # Whether CI should include auto-generated code to build local artifacts | |
| build-local-artifacts = false | |
| # Local artifacts jobs to run in CI | |
| local-artifacts-jobs = ["./build-binaries", "./build-docker", "./build-wasm"] | |
| # Publish jobs to run in CI | |
| publish-jobs = ["./publish-pypi", "./publish-wasm", "./publish-crates"] | |
| # Post-announce jobs to run in CI | |
| post-announce-jobs = ["./notify-dependents", "./publish-docs", "./publish-playground", "./publish-versions", "./publish-mirror"] | |
| # Custom permissions for GitHub Jobs | |
| github-custom-job-permissions = { "build-binaries" = { contents = "read" }, "build-docker" = { packages = "write", contents = "read", id-token = "write", attestations = "write" }, "build-wasm" = { contents = "read" }, "publish-wasm" = { contents = "read", id-token = "write", packages = "write" }, "publish-crates" = { contents = "read" }, "publish-playground" = { contents = "read" }, "notify-dependents" = { id-token = "write" }, "publish-docs" = { contents = "read", id-token = "write" }, "publish-versions" = { contents = "read", id-token = "write" }, "publish-mirror" = { contents = "read" } } | |
| # Whether to install an updater program | |
| install-updater = false | |
| # Path that installers should place binaries in | |
| install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] | |
| # Prefer simple hosting for downloads, falling back to GitHub releases | |
| hosting = ["simple", "github"] | |
| simple-download-url = "https://releases.astral.sh/github/ruff/releases/download/{tag}" | |
| [dist.github-custom-runners] | |
| global = "depot-ubuntu-24.04-4" | |
| [dist.github-action-commits] | |
| "actions/checkout" = "de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2 | |
| "actions/upload-artifact" = "bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" # v7.0.0 | |
| "actions/download-artifact" = "3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c" # v8.0.1 | |
| "actions/attest-build-provenance" = "a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32" # v4.1.0 |