Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
sauljabin committed Jun 18, 2024
1 parent 9eacd02 commit 0e6f2d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import shlex
import subprocess
import sys

from rich.console import Console

Expand Down
6 changes: 5 additions & 1 deletion scripts/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def main(rule):
bump_version(rule)
new_app_version = get_app_version()

changelog_release(new_app_version)
try:
changelog_release(new_app_version)
except Exception as changelog_e:
revert_changes()
raise changelog_e

confirmation = console.input(
f"Release a new [purple bold]{rule}[/] version [bold purple]{new_app_version}[/] ([bold"
Expand Down
2 changes: 1 addition & 1 deletion scripts/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def main():
init_commands = {
"black": "poetry run black . --preview",
"ruff": "poetry run ruff . --fix",
"ruff": "poetry run ruff check . --fix",
}
command_processor = CommandProcessor(init_commands)
command_processor.run()
Expand Down

0 comments on commit 0e6f2d2

Please sign in to comment.