diff --git a/pyproject.toml b/pyproject.toml index 5f3193f618..6dea47443d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,27 +111,7 @@ force-exclude = ''' major_labels = [] # Ruff never uses the major version number minor_labels = ["breaking"] # Bump the minor version on breaking changes -changelog_ignore_labels = ["internal", "ci", "testing", "ty"] - -changelog_sections.breaking = "Breaking changes" -changelog_sections.preview = "Preview features" -changelog_sections.bug = "Bug fixes" -changelog_sections.rule = "Rule changes" -changelog_sections.diagnostics = "Rule changes" -changelog_sections.docstring = "Rule changes" -changelog_sections.fixes = "Rule changes" -changelog_sections.isort = "Rule changes" -changelog_sections.performance = "Performance" -changelog_sections.formatter = "Formatter" -changelog_sections.server = "Server" -changelog_sections.cli = "CLI" -changelog_sections.configuration = "Configuration" -changelog_sections.documentation = "Documentation" -changelog_sections.__unknown__ = "Other changes" - -# We exclude contributors from the CHANGELOG file -# Generate separately with `rooster contributors` for the GitHub release page -changelog_contributors = false +ignore_labels = ["internal", "ci", "testing", "ty"] version_files = [ "README.md", @@ -142,3 +122,22 @@ version_files = [ "crates/ruff_wasm/Cargo.toml", "scripts/benchmarks/pyproject.toml", ] + +[tool.rooster.section-labels] +"Breaking changes" = ["breaking"] +"Preview features" = ["preview"] +"Bug fixes" = ["bug"] +"Rule changes" = [ + "diagnostics", + "docstrings", + "rule", + "fixes", + "isort", +] +"Performance" = ["performance"] +"Formatter" = ["formatter"] +"Server" = ["server"] +"CLI" = ["cli"] +"Configuration" = ["configuration"] +"Documentation" = ["documentation"] +"Other changes" = ["__unknown__"] diff --git a/scripts/release.sh b/scripts/release.sh index 0d0454f1ec..cb0ddf2790 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -11,14 +11,8 @@ project_root="$(dirname "$script_root")" echo "Updating metadata with rooster..." cd "$project_root" -uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 --isolated -- \ - rooster release "$@" +uvx --python 3.12 --isolated -- \ + rooster@0.0.10a1 release "$@" echo "Updating lockfile..." cargo update -p ruff - -echo "Generating contributors list..." -echo "" -echo "" -uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 --isolated -- \ - rooster contributors --quiet