Scott Gasch [Mon, 14 Mar 2022 01:00:10 +0000 (18:00 -0700)]
Fix center align in header.
Scott Gasch [Mon, 14 Mar 2022 00:52:20 +0000 (17:52 -0700)]
Beef up header.
Scott Gasch [Sat, 12 Mar 2022 19:09:23 +0000 (11:09 -0800)]
Improve profanity filter.
Scott Gasch [Mon, 7 Mar 2022 07:13:50 +0000 (23:13 -0800)]
IntEnum -> Enum to fix printing of enum values.
Scott Gasch [Sat, 5 Mar 2022 18:15:03 +0000 (10:15 -0800)]
Improve text wrapping; add indent option.
Scott Gasch [Tue, 1 Mar 2022 18:51:30 +0000 (10:51 -0800)]
Teach site_location about the .local hostname suffix that the mac
gets when connected to a VPN.
Scott Gasch [Sun, 27 Feb 2022 06:41:58 +0000 (22:41 -0800)]
Rename a method, cleanup lint errors.
Scott Gasch [Sat, 26 Feb 2022 19:15:31 +0000 (11:15 -0800)]
More work on tplink utils to avoid having to call tplink.py.
Scott Gasch [Sat, 26 Feb 2022 18:47:16 +0000 (10:47 -0800)]
Increase timeout.
Scott Gasch [Sat, 26 Feb 2022 18:45:11 +0000 (10:45 -0800)]
Moved more logic from tplink.py into a library.
Scott Gasch [Fri, 25 Feb 2022 19:03:14 +0000 (11:03 -0800)]
Moving towards not needing a separate tplink.py utility.
Scott Gasch [Thu, 24 Feb 2022 23:52:21 +0000 (15:52 -0800)]
Also log about __debug__.
Scott Gasch [Wed, 23 Feb 2022 22:40:50 +0000 (14:40 -0800)]
Move encrypt and decrypt routines into tplink_utils.
Scott Gasch [Wed, 23 Feb 2022 20:43:37 +0000 (12:43 -0800)]
Let text_utils work with strings that contain ansi escape sequences.
Scott Gasch [Wed, 23 Feb 2022 19:09:57 +0000 (11:09 -0800)]
Separate box and print_box.
Scott Gasch [Wed, 23 Feb 2022 17:32:42 +0000 (09:32 -0800)]
Added a box method and fixed the broken justify method.
Scott Gasch [Wed, 23 Feb 2022 04:02:24 +0000 (20:02 -0800)]
Log the original commandline at DEBUG level.
Scott Gasch [Wed, 23 Feb 2022 04:00:15 +0000 (20:00 -0800)]
Remove whitespace from trie's repr_brief.
Scott Gasch [Fri, 18 Feb 2022 02:37:51 +0000 (18:37 -0800)]
Cleanup
Scott Gasch [Thu, 17 Feb 2022 20:01:10 +0000 (12:01 -0800)]
Fix dimmer level JSON command.
Scott Gasch [Thu, 17 Feb 2022 19:52:14 +0000 (11:52 -0800)]
Cleanup.
Scott Gasch [Tue, 15 Feb 2022 21:09:08 +0000 (13:09 -0800)]
Update profanity.
Scott Gasch [Tue, 15 Feb 2022 18:24:51 +0000 (10:24 -0800)]
Fix a bug in sanity check image.
Scott Gasch [Sat, 12 Feb 2022 20:19:23 +0000 (12:19 -0800)]
Oops.
Scott Gasch [Sat, 12 Feb 2022 19:20:27 +0000 (11:20 -0800)]
Try another tactic to figure out entry point.
Scott Gasch [Sat, 12 Feb 2022 19:17:45 +0000 (11:17 -0800)]
Change weights.
Scott Gasch [Fri, 11 Feb 2022 19:40:38 +0000 (11:40 -0800)]
Add mode.
Scott Gasch [Fri, 11 Feb 2022 19:14:20 +0000 (11:14 -0800)]
Fix stdev.
Scott Gasch [Thu, 10 Feb 2022 22:52:14 +0000 (14:52 -0800)]
More cleanup.
Scott Gasch [Thu, 10 Feb 2022 22:27:05 +0000 (14:27 -0800)]
More cleanup.
Scott Gasch [Thu, 10 Feb 2022 22:10:48 +0000 (14:10 -0800)]
More cleanup.
Scott Gasch [Thu, 10 Feb 2022 21:38:41 +0000 (13:38 -0800)]
Adds pyproject.toml.
Scott Gasch [Thu, 10 Feb 2022 21:36:58 +0000 (13:36 -0800)]
More cleanup.
Scott Gasch [Thu, 10 Feb 2022 19:40:19 +0000 (11:40 -0800)]
Update docs.
Scott Gasch [Thu, 10 Feb 2022 18:38:48 +0000 (10:38 -0800)]
Add percentile and change name of RunningMedian class.
Scott Gasch [Thu, 10 Feb 2022 16:47:45 +0000 (08:47 -0800)]
Fix a bug, add some testcases.
Scott Gasch [Thu, 10 Feb 2022 16:13:08 +0000 (08:13 -0800)]
Add some useful stats to histogram.
Scott Gasch [Thu, 10 Feb 2022 06:18:59 +0000 (22:18 -0800)]
More spring cleaning.
Scott Gasch [Wed, 9 Feb 2022 18:35:31 +0000 (10:35 -0800)]
Fix typo.
Scott Gasch [Wed, 9 Feb 2022 18:30:44 +0000 (10:30 -0800)]
Ditch named tuples for dataclasses.
Scott Gasch [Wed, 9 Feb 2022 17:32:40 +0000 (09:32 -0800)]
Cleanup.
Scott Gasch [Wed, 9 Feb 2022 16:59:45 +0000 (08:59 -0800)]
Cleanup.
Scott Gasch [Wed, 9 Feb 2022 05:13:09 +0000 (21:13 -0800)]
Fighting with type hints.
Scott Gasch [Wed, 9 Feb 2022 04:21:02 +0000 (20:21 -0800)]
Cleanup more contextlib.AbstractContextManagers and Literal[False]s.
Scott Gasch [Wed, 9 Feb 2022 03:59:23 +0000 (19:59 -0800)]
Cleanup unittest_utils trying to get clean lint.
Scott Gasch [Wed, 9 Feb 2022 03:55:34 +0000 (19:55 -0800)]
Change the weights in the default executor's remote worker pool.
Scott Gasch [Wed, 9 Feb 2022 02:27:16 +0000 (18:27 -0800)]
Keep requirements up-to-date.
Scott Gasch [Wed, 9 Feb 2022 01:46:56 +0000 (17:46 -0800)]
More cleanup, yey!
Scott Gasch [Tue, 8 Feb 2022 22:38:15 +0000 (14:38 -0800)]
More cleanup.
Scott Gasch [Tue, 8 Feb 2022 21:08:52 +0000 (13:08 -0800)]
Hook in pylint to the pre-commit hook and start to fix some of its
warnings. It seems pickier than flake8 which is probably a good
thing.
Scott Gasch [Mon, 7 Feb 2022 21:56:00 +0000 (13:56 -0800)]
How to do the thing.
Scott Gasch [Mon, 7 Feb 2022 18:55:09 +0000 (10:55 -0800)]
Adds unittest.
Scott Gasch [Mon, 7 Feb 2022 18:34:09 +0000 (10:34 -0800)]
Add a simple test to google_assistant code.
Scott Gasch [Mon, 7 Feb 2022 02:36:50 +0000 (18:36 -0800)]
Ignore integration test results in code coverage report.
Scott Gasch [Mon, 7 Feb 2022 02:34:05 +0000 (18:34 -0800)]
Add a doctest to type_utils.py.
Scott Gasch [Mon, 7 Feb 2022 00:35:16 +0000 (16:35 -0800)]
Get mypy to stop with this fucking "has no attribute" shit when
importing a submodule. I am probably doing something wrong here but I
have no idea what.
Scott Gasch [Sun, 6 Feb 2022 23:14:14 +0000 (15:14 -0800)]
Give deps more time to run.
Scott Gasch [Sun, 6 Feb 2022 23:12:38 +0000 (15:12 -0800)]
Add another profanity.
Scott Gasch [Sun, 6 Feb 2022 21:45:21 +0000 (13:45 -0800)]
Add a simple test for waitable presence.
Scott Gasch [Sat, 5 Feb 2022 22:09:59 +0000 (14:09 -0800)]
Add doctest to misc_utils.
Scott Gasch [Sat, 5 Feb 2022 22:06:25 +0000 (14:06 -0800)]
Add a bunch of __init__.py's; maybe this will fix import
problems with mypy?
Scott Gasch [Sat, 5 Feb 2022 18:04:06 +0000 (10:04 -0800)]
Change threshold.
Scott Gasch [Sat, 5 Feb 2022 17:41:31 +0000 (09:41 -0800)]
Missed one.
Scott Gasch [Sat, 5 Feb 2022 17:38:32 +0000 (09:38 -0800)]
Add coding comments for files with utf8 characters in there.
Scott Gasch [Sat, 5 Feb 2022 17:30:07 +0000 (09:30 -0800)]
Add sparkline helper.
Scott Gasch [Fri, 4 Feb 2022 20:18:03 +0000 (12:18 -0800)]
Adds some doctests to site_config.
Scott Gasch [Fri, 4 Feb 2022 20:13:37 +0000 (12:13 -0800)]
Have bootstrap log the site_config at program initialization.
Scott Gasch [Fri, 4 Feb 2022 17:48:56 +0000 (09:48 -0800)]
Stop trying to cache mac addresses from house and cabin in the same
file.
Scott Gasch [Fri, 4 Feb 2022 16:23:14 +0000 (08:23 -0800)]
Fix a bug in device.py around the type of keywords, add logging and
add manage_switch_off_timers to the deps run at each checkin.
Scott Gasch [Fri, 4 Feb 2022 03:39:40 +0000 (19:39 -0800)]
Make it clear in arg message that this is a library. Dependency
inject the index file name to the c'tor to override the flag.
Scott Gasch [Fri, 4 Feb 2022 03:37:38 +0000 (19:37 -0800)]
Make it possible for users of this library to override argparse's
epilog message.
Scott Gasch [Fri, 4 Feb 2022 03:29:59 +0000 (19:29 -0800)]
Add cron.py, a pretty important (and easy) one.
Scott Gasch [Thu, 3 Feb 2022 23:47:25 +0000 (15:47 -0800)]
Make this thing actually work.
Scott Gasch [Thu, 3 Feb 2022 23:44:32 +0000 (15:44 -0800)]
Add a formatter that handles raw help text, optionally.
Scott Gasch [Thu, 3 Feb 2022 23:42:44 +0000 (15:42 -0800)]
Make the parallelize intergration test short enough to run at
checkin time and enable it.
Scott Gasch [Thu, 3 Feb 2022 22:41:29 +0000 (14:41 -0800)]
Add a "unittest" that runs stuff like reminder and unscramble
etc... to just make sure they don't crash.
Scott Gasch [Thu, 3 Feb 2022 22:18:37 +0000 (14:18 -0800)]
Change settings in flake8 and black.
Scott Gasch [Thu, 3 Feb 2022 22:04:07 +0000 (14:04 -0800)]
Take the lock before unlinking the mmap'ed shared memory to ensure
all writes are finished and visible.
Scott Gasch [Thu, 3 Feb 2022 19:53:51 +0000 (11:53 -0800)]
Disallow where're too.
Scott Gasch [Thu, 3 Feb 2022 19:38:01 +0000 (11:38 -0800)]
Merge branch 'master' of ssh://git.house/usr/local/git/base/python_utils
Scott Gasch [Thu, 3 Feb 2022 19:36:13 +0000 (11:36 -0800)]
Contractions and stuff in string_utils.
Scott [Thu, 3 Feb 2022 19:18:21 +0000 (11:18 -0800)]
Contractions and stuff in string_utils.
Scott [Thu, 3 Feb 2022 07:37:32 +0000 (23:37 -0800)]
Let's call the base class' c'tor first, eh?
Scott [Thu, 3 Feb 2022 07:36:39 +0000 (23:36 -0800)]
Stop spamming the log from bg.
Scott [Thu, 3 Feb 2022 07:35:38 +0000 (23:35 -0800)]
Fix a bug in histogram.
Scott [Wed, 2 Feb 2022 21:47:36 +0000 (13:47 -0800)]
Let's be explicit with asserts; there was a bug in histogram
caused by assert foo when foo was an int with valid valid 0.
Scott [Wed, 2 Feb 2022 21:09:30 +0000 (13:09 -0800)]
Make subdirs type clean too.
Scott [Wed, 2 Feb 2022 20:13:27 +0000 (12:13 -0800)]
Used isort to sort imports. Also added to the git pre-commit hook.
Scott [Wed, 2 Feb 2022 19:09:18 +0000 (11:09 -0800)]
mypy clean!
Scott [Wed, 2 Feb 2022 18:35:08 +0000 (10:35 -0800)]
Fix a problem introduced with previous type cleanup change.
Scott [Wed, 2 Feb 2022 17:14:12 +0000 (09:14 -0800)]
More type annotations.
Scott [Wed, 2 Feb 2022 16:31:42 +0000 (08:31 -0800)]
More mypy cleanup.
Scott [Wed, 2 Feb 2022 04:14:13 +0000 (20:14 -0800)]
More mypy cleanup... ugh.
Scott [Tue, 1 Feb 2022 05:38:46 +0000 (21:38 -0800)]
Myre mypy fixes.
Scott [Tue, 1 Feb 2022 05:03:41 +0000 (21:03 -0800)]
Clean up mypy type checker errors.
Scott [Mon, 31 Jan 2022 20:00:11 +0000 (12:00 -0800)]
Fix a couple of bugs in date parsing.
Scott [Mon, 31 Jan 2022 18:03:43 +0000 (10:03 -0800)]
Adds a quiet option to executor shutdown.
Scott [Mon, 31 Jan 2022 17:58:30 +0000 (09:58 -0800)]
Tweak histograms in executors to include seconds label.
Scott [Mon, 31 Jan 2022 17:55:30 +0000 (09:55 -0800)]
Make histogram auto-format labels.
Scott [Mon, 31 Jan 2022 17:13:00 +0000 (09:13 -0800)]
If percent > 0, even if it's very small, render some little sliver of
a bar.