Skip to content

Commit

Permalink
chore: Apply ruff's formatting recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch authored and rumpelsepp committed Jul 25, 2024
1 parent be069b8 commit c60795e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion misc/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ def check_project(rule: BumpMode | str) -> None:
match rule:
case BumpMode.PATCH | BumpMode.PREPATCH if not current_branch.endswith("-maint"):
die("minor or patch releases must be cut from maintenance branch!")
case BumpMode.MAJOR | BumpMode.PREMAJOR | BumpMode.MINOR | BumpMode.PREMINOR if current_branch != "master":
case (
BumpMode.MAJOR
| BumpMode.PREMAJOR
| BumpMode.MINOR
| BumpMode.PREMINOR
) if current_branch != "master":
die("major releases must be cut from master branch!")
p = run(
["git", "diff", "--no-ext-diff", "--quiet", "--exit-code"],
Expand Down

0 comments on commit c60795e

Please sign in to comment.