From 084a25682013ed4f1a8c29926b0b2fd173aa1c2f Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 1 May 2021 10:38:43 +1000 Subject: [PATCH] prepare for 3.1.1 release - run Black to clean up formatting - extra-cautious addition to .gitignore - bump version from pre-release --- .gitignore | 3 ++- ephemetoot/ephemetoot.py | 12 ++++++------ pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 57a2dd4..86ef7d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ config.yaml _assets pypi-readme.md archive -dist \ No newline at end of file +dist +.pytest_cache/* \ No newline at end of file diff --git a/ephemetoot/ephemetoot.py b/ephemetoot/ephemetoot.py index 1395dd5..8002de1 100644 --- a/ephemetoot/ephemetoot.py +++ b/ephemetoot/ephemetoot.py @@ -382,7 +382,7 @@ def print_rate_limit_message(mastodon): def retry_on_error(options, mastodon, toot, attempts=0): - if attempts < 6: + if attempts < 6: try: console_print( "Attempt " + str(attempts) + " at " + datestamp_now(), options, False @@ -587,11 +587,11 @@ def check_batch(config, options, mastodon, user_id, timeline, deleted_count=0): except IndexError: if not options.quiet or options.quiet <= 1: print( - "No toots found for " - + config["username"] - + "@" - + config["base_url"] - + ".\n" + "No toots found for " + + config["username"] + + "@" + + config["base_url"] + + ".\n" ) diff --git a/pyproject.toml b/pyproject.toml index dbd8ec0..39560ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ephemetoot" -version = "3.1.1a1" +version = "3.1.1" description = "A command line tool to delete your old toots" authors = ["Hugh Rundle "] license = "GPL-3.0-or-later"