Hugh Rundle
3d78af93b4
update version to 3 beta 0
2020-09-05 17:41:02 +10:00
Hugh Rundle
f430ef1049
add tests
...
adds complete test suite using pytest
2020-09-05 17:24:10 +10:00
Hugh Rundle
aea5c1d0ea
update docs for v3
...
Adds more information specific to upgrading from earlier version to v3.x
2020-09-05 17:23:04 +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
977bb06db4
ignore archive dir used in dev
2020-08-31 15:10:58 +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
619a4a42f7
add pytest
2020-08-30 11:44:37 +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
275f16e997
make corrections to docs
2020-08-28 21:14:44 +10:00
Hugh Rundle
81db1f167f
Merge pull request #45 from hughrun/poetry
...
Version 3 alpha
2020-08-28 18:32:39 +10:00
Hugh Rundle
5a20d985e4
Merge branch 'poetry' of github.com:hughrun/ephemetoot into poetry
2020-08-28 18:24:11 +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
d8f4458239
update poetry toml with correct license and new version
2020-08-28 18:16:31 +10:00
Hugh Rundle
2b9dacc56c
update docs for version 3
2020-08-28 18:13:46 +10:00
Hugh Rundle
490dad3bb8
reconfigure file structure and add toml for poetry
2020-08-26 21:59:01 +10:00
Hugh Rundle
0e1337b926
update and reconfigure docs
2020-08-26 21:57:13 +10:00
Hugh Rundle
3d3b74d828
remove header from index.md
2020-08-26 08:55:51 +10:00
Hugh Rundle
87a7791fc0
Create CNAME
2020-08-25 08:55:58 +10:00
Hugh Rundle
371ed4f4e6
Merge branch 'poetry' of github.com:hughrun/ephemetoot into poetry
2020-08-24 21:36:43 +10:00
Hugh Rundle
746d91b584
update docs index
2020-08-24 21:36:17 +10:00
Hugh Rundle
ecdd7a1e32
Set theme jekyll-theme-hacker
2020-08-24 21:25:42 +10:00
Hugh Rundle
05ef0279e4
add index page for GH Pages home
2020-08-24 21:23:38 +10:00
Hugh Rundle
99788e243b
re-organise docs
2020-08-24 21:22:39 +10:00
Hugh Rundle
81ecfe1d09
Set theme jekyll-theme-hacker
2020-08-24 21:19:52 +10:00
Hugh Rundle
06f65c436d
Merge pull request #43 from hughrun/2_6_release
...
add --retry-mins option
2020-08-23 17:10:38 +10:00
Hugh Rundle
2ef182a8f5
Merge branch 'master' into 2_6_release
2020-08-23 17:00:40 +10:00
Hugh Rundle
0ce796c87e
add --retry-mins option
...
This commit adds a --retry-mins option to enable users to choose how many minutes pass
between attempts to retry a toot deletion when there is an error.
Also re-organises documentation and bumps version to 2.6.
2020-08-23 16:53:03 +10:00
Hugh Rundle
8ecc22c0ab
Merge pull request #40 from jneplokh/master
...
Fix typo in README on copying the example config
2020-07-19 17:35:22 +10:00
Jacob Neplokh
b825031738
Fix typo in README on copying the example config
2020-07-19 00:24:50 -07:00
Hugh Rundle
06ff0fe1f1
Merge pull request #38 from hughrun/2_5_release
...
2 5 release
2020-07-18 18:27:44 +10:00
Hugh Rundle
0e1919f6f5
update hide-skipped references
2020-07-18 18:14:09 +10:00
Hugh Rundle
5c5fdec650
add --quite to readme
2020-07-18 18:12:38 +10:00
Hugh Rundle
a777e18e12
update docs for v2.5
...
Updates README for new options
Updates version number
2020-07-18 18:04:27 +10:00
Hugh Rundle
62db64a73f
add --quiet mode
...
This new option suppresses most logging, except for very basic information (which account is being worked on, and how many toots were deleted).
Exception messages are not suppressed.
2020-07-18 18:02:30 +10:00
Hugh Rundle
f5016fe684
add --archive-deleted flag
...
This adds a flag to restrict the archive to only toots about to be deleted, rather than archiving everything.
2020-07-18 17:38:16 +10:00
Hugh Rundle
7aa2b89424
improve archive description
2020-07-18 15:53:12 +10:00
Hugh Rundle
9803e16f95
Fix non-absolute archive filepaths breaking
...
Archive paths can now be relative (not recommended) or use tildes
Also improves documentation of archive function both in README and example config.
2020-07-18 15:45:20 +10:00
Hugh Rundle
594f5dd5c6
improve help menu
2020-07-18 15:44:00 +10:00
Hugh Rundle
052d61f0d8
update CoC contact email
2020-07-05 17:21:07 +10:00