Skip to content

Commit b9b5755

Browse files
authored
Upgrade to the latest rooster version and include contributors in CHANGELOG (#20472)
What it says on the tin! Manually tested the release script and it appears to produce the right thing.
1 parent b4b5d67 commit b9b5755

2 files changed

Lines changed: 22 additions & 29 deletions

File tree

pyproject.toml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,7 @@ force-exclude = '''
111111
major_labels = [] # Ruff never uses the major version number
112112
minor_labels = ["breaking"] # Bump the minor version on breaking changes
113113

114-
changelog_ignore_labels = ["internal", "ci", "testing", "ty"]
115-
116-
changelog_sections.breaking = "Breaking changes"
117-
changelog_sections.preview = "Preview features"
118-
changelog_sections.bug = "Bug fixes"
119-
changelog_sections.rule = "Rule changes"
120-
changelog_sections.diagnostics = "Rule changes"
121-
changelog_sections.docstring = "Rule changes"
122-
changelog_sections.fixes = "Rule changes"
123-
changelog_sections.isort = "Rule changes"
124-
changelog_sections.performance = "Performance"
125-
changelog_sections.formatter = "Formatter"
126-
changelog_sections.server = "Server"
127-
changelog_sections.cli = "CLI"
128-
changelog_sections.configuration = "Configuration"
129-
changelog_sections.documentation = "Documentation"
130-
changelog_sections.__unknown__ = "Other changes"
131-
132-
# We exclude contributors from the CHANGELOG file
133-
# Generate separately with `rooster contributors` for the GitHub release page
134-
changelog_contributors = false
114+
ignore_labels = ["internal", "ci", "testing", "ty"]
135115

136116
version_files = [
137117
"README.md",
@@ -142,3 +122,22 @@ version_files = [
142122
"crates/ruff_wasm/Cargo.toml",
143123
"scripts/benchmarks/pyproject.toml",
144124
]
125+
126+
[tool.rooster.section-labels]
127+
"Breaking changes" = ["breaking"]
128+
"Preview features" = ["preview"]
129+
"Bug fixes" = ["bug"]
130+
"Rule changes" = [
131+
"diagnostics",
132+
"docstrings",
133+
"rule",
134+
"fixes",
135+
"isort",
136+
]
137+
"Performance" = ["performance"]
138+
"Formatter" = ["formatter"]
139+
"Server" = ["server"]
140+
"CLI" = ["cli"]
141+
"Configuration" = ["configuration"]
142+
"Documentation" = ["documentation"]
143+
"Other changes" = ["__unknown__"]

scripts/release.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ project_root="$(dirname "$script_root")"
1111

1212
echo "Updating metadata with rooster..."
1313
cd "$project_root"
14-
uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 --isolated -- \
15-
rooster release "$@"
14+
uvx --python 3.12 --isolated -- \
15+
rooster@0.0.10a1 release "$@"
1616

1717
echo "Updating lockfile..."
1818
cargo update -p ruff
19-
20-
echo "Generating contributors list..."
21-
echo ""
22-
echo ""
23-
uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 --isolated -- \
24-
rooster contributors --quiet

0 commit comments

Comments
 (0)