1
0
mirror of https://github.com/hughrun/ephemetoot synced 2025-01-15 15:05:48 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
Paco Esteban
2ac51c660b remove setuptools runtime dependency 2023-01-09 18:45:36 +01:00
Florian Obser
04c4ccd6b9 add archive_media configuration option
With the archive_media option set to true, media attachments are
archived together with the toot.
Resolves #72
2021-08-22 16:52:23 +02:00
Hugh Rundle
084a256820 prepare for 3.1.1 release
- run Black to clean up formatting
- extra-cautious addition to .gitignore
- bump version from pre-release
2021-05-01 10:38:43 +10:00
Hugh Rundle
039a142c24 Add default values to functions
Aimed to be a fix for #66 (concat incompatible type errors under certain conditions)
2021-02-12 21:11:25 +11:00
Hugh Rundle
a3f5bd4c53 suppress IndexError message for q=2 or more
- adds username to "No toots found" message
- only prints if quiet <= 1
2020-09-12 15:06:48 +10:00
Hugh Rundle
44f764ace0
Merge pull request #59 from hughrun/sanitise-init
Sanitise init
2020-09-12 14:24:47 +10:00
Hugh Rundle
3fa22cb33f Fix incorrect upgrade instructions
Fixes #55
2020-09-12 14:10:06 +10:00
Hugh Rundle
e8ff05b11d sanitise --init inputs
Adds function to check most inputs for config file, to ensure they meet requirements.

For example, that tags don't have a "#" and the username doesn't have a "@"
2020-09-12 14:04:53 +10:00
Mohamad Safadieh
7aed1e8d1a
add options to further suppress output
This commit adds the ability to further suppress output for accounts
with no deleted toots using the `-qq` flag. It alsoadds the option
to completely suppress logging (excluding exceptions) by using the
`-qqq` flag
2020-09-09 19:06:38 -04:00
Hugh Rundle
4905e0543d format with black 2020-09-08 20:05:10 +10:00
Hugh Rundle
2ab8c55bac update instructions
- fix docs Home link being wrong
- add --verbose to options page in docs
- add info about where to see docs, in init()
2020-09-08 18:41:37 +10:00
Hugh Rundle
cb78b7682a add line break in verbose mode 2020-09-07 13:28:54 +10:00
Hugh Rundle
81f408bde3 improve test run message
Resolves #50 by showing a different 'completion message' for test runs.
2020-09-07 11:13:07 +10:00
Hugh Rundle
c3235027da add verbose mode and move exception catching
When tests were added and the main function was split up, some of the exception catching logic was inappropriately moved.
This meant that some exceptions didn't break the loop, when they should have. This is now fixed.

Also added --verbose mode to make troubleshooting a bit easier (hopefully).
2020-09-07 10:57:19 +10:00
Hugh Rundle
6d13618ad4 improve instructions
- README now has a 'quickstart' section
- config file creation clarifies not to include the '#' in hashtag lists
2020-09-07 09:51:06 +10:00
Hugh Rundle
6ccbd9bdd9 standardise toot object references and fix prints
- toot references consistently use dot notation
- console_print statement with old print() comma use fixed
- change the way new lines are created in final message
2020-09-05 17:14:34 +10:00
Hugh Rundle
85546870f6 move retry_on_error() to top level
- moves retry_on_error() to top level function to enable testing
- clean up some code formatting
2020-09-05 12:07:51 +10:00
Hugh Rundle
0be13d7f1a put rate limit message in function and fix console_print()
- datetime message should print before message, not after
- rate limit message moved into function print_rate_limit_message()
2020-09-05 11:09:59 +10:00
Hugh Rundle
303f7a4cc0 move most print statements to console_print() function
Makes code more DRY by moving printing logic into a function.
Checks for --quiet and --hide_skipped are now in this function.
Checks for --datestamp also in this function.

Also makes code easier to test.
2020-09-05 09:20:26 +10:00
Hugh Rundle
3012800f54 create process_toot() function
Move all logic for processing each individual toot out of check_batch to a top level function.

This is partially to enable easier testing and partially to make the codebase easier to read through and understand.
2020-08-31 16:54:26 +10:00
Hugh Rundle
43a792e44d move check_batch to top level function 2020-08-31 15:10:18 +10:00
Hugh Rundle
0a01f18e44 refactor init()
This moves the input() statements into four separate functions taking values.

The main reason for doing so was to allow for unit testing, however it also makes the init() function a little clearer.
Also, potentially, these input functions can now be used by other functions in future.
2020-08-31 14:28:08 +10:00
Hugh Rundle
ffa50dd448 use os.path.join in plist creation
This is more correct and also makes testing easier
2020-08-31 09:53:09 +10:00
Hugh Rundle
50d04c27db move archiving and date printing functions into global scope 2020-08-30 18:57:25 +10:00
Hugh Rundle
8c973a0b3e improve error handling in console.py 2020-08-30 16:03:27 +10:00
Hugh Rundle
f6542f0529 refactor print statements 2020-08-30 14:33:36 +10:00
Hugh Rundle
2c9e35fffc create __docs__ comments 2020-08-29 14:04:24 +10:00
Hugh Rundle
e13646e459 apply black formatting 2020-08-28 21:25:46 +10:00
Hugh Rundle
beac59d440 add try/except for missing config file 2020-08-28 21:16:07 +10:00
Hugh Rundle
d3e3db27a8 3.0.0-alpha
This commit updates ephemetoot for version 3.0.0-alpha.0

Version 3 is designed to be installed from PyPi rather than GitHub. This means the default plist and config files will not be available.

- updates to directory structure
- add --init flag for initiating a config file
- change --schedule so that it saves the plist file directly to ~/Library/LaunchAgents
- update documentation
- new README just for PyPi
2020-08-28 18:16:39 +10:00
Hugh Rundle
490dad3bb8 reconfigure file structure and add toml for poetry 2020-08-26 21:59:01 +10:00