Skip to content

Commit 04b6154

Browse files
committed
reformat with ruff
1 parent 32602d9 commit 04b6154

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

script/release.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def call_bash_script(cmd):
4242
else:
4343
os.system(cmd)
4444

45+
4546
def upload_sdist(new_version_num):
4647
wheel_file = 'dist/appium_python_client-{}-py3-none-any.whl'.format(new_version_num)
4748
push_file = 'dist/appium_python_client-{}.tar.gz'.format(new_version_num)
@@ -54,16 +55,22 @@ def upload_sdist(new_version_num):
5455
)
5556
)
5657

58+
5759
def ensure_publication(new_version_num):
5860
if os.environ.get('DRY_RUN') is not None:
5961
print('Run with {} mode.'.format(MESSAGE_RED.format('[DRY_RUN]')))
6062

61-
print('Are you sure to publish a new built modules in dist directory as {}?[y/n]'.format(MESSAGE_YELLOW.format(new_version_num)))
63+
print(
64+
'Are you sure to publish a new built modules in dist directory as {}?[y/n]'.format(
65+
MESSAGE_YELLOW.format(new_version_num)
66+
)
67+
)
6268
for line in sys.stdin:
6369
if line.rstrip().lower() == 'y':
6470
return
6571
sys.exit('Canceled release process.')
6672

73+
6774
def main():
6875
print_current_version()
6976
new_version = get_new_version()

0 commit comments

Comments
 (0)