Commit Graph

478 Commits (0a0bbae88ca41a5860d271670fc9e78262a8d1e1)

Author SHA1 Message Date
voussoir e737e60862
Revert files/directories argument to glob, use separate functions.
I thought it was clever at first, but now I'm feeling that having
mutually exclusive arguments to a single function in this case is
better served by just having two functions. Which also saves us
from ever having to deal with the exception case.
2021-11-07 18:58:35 -08:00
voussoir 125681da18
Let pathclass.join take spawn_kwargs. 2021-11-07 18:55:28 -08:00
voussoir 154f02f5bb
Use r-string for re.match windows drive letter. 2021-11-07 18:54:17 -08:00
voussoir 281e95f184
Make force_sep a kw-only argument. 2021-11-07 18:53:57 -08:00
voussoir 71830845d4
Add note that get_objects_by_id does not raise. 2021-11-07 18:52:50 -08:00
voussoir fbe2a664e5
Move decorate_and_route to flasktools. 2021-10-31 15:11:53 -07:00
voussoir 5dff2d446b
Add docstring and comments to give_theme_cookie. 2021-10-31 13:30:34 -07:00
voussoir bae4953097
Move give_theme_cookie to flasktools. 2021-10-30 17:29:28 -07:00
voussoir f267d55f9d
Use functools.wraps. 2021-10-30 17:29:01 -07:00
voussoir 38de31f1e2
Let the wrapped mains take additional arguments.
Just in case the application wants to do so.
2021-10-30 17:27:05 -07:00
voussoir 73e722fa7b
Bump to version 0.0.69. 2021-10-25 12:31:37 -07:00
voussoir 2756fb87e3
Add docstring for monkeypatch_requests. 2021-10-25 12:29:28 -07:00
voussoir ba6cb79529
If level is None, don't bother making the nullcontext. 2021-10-25 12:28:22 -07:00
voussoir c3c22270ee
Add earlybird_config. 2021-10-25 11:28:07 -07:00
voussoir 6e315303de
Finally finally fix vlogging/operatornotify interplay?
I realized that vlogging.main_decorator shouldn't be using basic_config
in the first place because main decorator should always create a stderr
handler and I was just contorting the previous code to make that happen
via basic_config. So instead let's just add it ourselves.
2021-10-25 11:27:57 -07:00
voussoir 414fc60f48
Reduce redundancy in get_level_by_argv with tryremove. 2021-10-25 10:57:30 -07:00
voussoir f1df7ef3f5
Bump to version 0.0.68. 2021-10-25 00:11:09 -07:00
voussoir 083b466d07
Alphabetize functions. 2021-10-24 23:38:23 -07:00
voussoir 7d9489b5ae
Add snake_case alias get_logger, getLogger. 2021-10-24 23:34:08 -07:00
voussoir ea08e2399e
Fix root.handlers check which I accidentally removed. 2021-10-24 23:30:41 -07:00
voussoir b68ac864fa
Return a pathclass object from @property drive. 2021-10-24 00:16:33 -07:00
voussoir d082a0fbb5
Finally solve vlogging/opnot interplay by just setting NOTSET always. 2021-10-18 18:20:17 -07:00
voussoir d38c7c074e
Add mutables.py.
I might regret this!
2021-10-15 22:57:23 -07:00
voussoir 4e4fcdb77f
Add httperrors.py.
I'm on the fence about whether I'll really migrate everything over
to use this, but it's been sitting on my computer for weeks and I
haven't decided to delete it yet, so let's go.
2021-10-15 21:35:46 -07:00
voussoir bcb6c7df19
Fix use of pathclass in overwrite. 2021-10-12 21:12:24 -07:00
voussoir e30c6df519
Bump to version 0.0.67. 2021-10-10 12:32:52 -07:00
voussoir a94de2adde
Add some docstrings, return annotations. 2021-10-10 12:06:54 -07:00
voussoir 6edba068e5
Add global constant INTERNET_IP. 2021-10-10 12:02:09 -07:00
voussoir 1a375e4964
Assert stdin exists for all interactive functions. 2021-10-10 00:42:18 -07:00
voussoir a4196f2b13
Add aliases assert_is_dir, assert_not_dir. 2021-10-10 00:31:43 -07:00
voussoir 05586e7e79
Let is_directory be canonical function, but keep the aliases. 2021-10-10 00:31:25 -07:00
voussoir 87fbede7d5
Add option log_return_value. 2021-10-09 17:56:31 -07:00
voussoir 531424c8c1
Remove *args, force use of named arguments. 2021-10-09 17:55:52 -07:00
voussoir c87fc584da
Call vlogging.basic_config as part of main_decorator. 2021-10-09 17:48:35 -07:00
voussoir e826eeca2c
Add vlogging.basic_config. 2021-10-09 17:47:48 -07:00
voussoir 5b6a1b4c9c
Use abstract base class to help the subclass know what to do. 2021-10-09 12:12:18 -07:00
voussoir 8eefc4a095
Small docstring improvements. 2021-10-05 16:53:30 -07:00
voussoir 0a1ab15637
Add convenient pathclass.read, write. 2021-10-04 17:19:20 -07:00
voussoir 39d6140138
Move assert_not_deleted to worms. 2021-10-02 12:45:17 -07:00
voussoir 129eb3f8aa
Rename make_json_response -> json_response. 2021-10-01 23:01:36 -07:00
voussoir aa1e2d5756
Add worms.py. 2021-10-01 22:35:38 -07:00
voussoir a3ddeb8e09
Improve needs_rewrite detection. 2021-09-30 16:20:12 -07:00
voussoir c1edd8fc33
Clarify variables. 2021-09-30 16:20:04 -07:00
voussoir e273eb22a5
Change hash header. 2021-09-24 18:32:07 -07:00
voussoir 8801407f58
Add --warning level. 2021-09-23 22:49:22 -07:00
voussoir 7021308c9e
Add call to coinitialize. 2021-09-23 22:49:19 -07:00
voussoir 5f6d291729
Fix docstring wrapping. 2021-09-23 22:39:09 -07:00
voussoir 3c82dc64e0
Don't write to streams when pythonw makes them None. 2021-09-23 22:37:55 -07:00
voussoir 5a2eca486f
Remove backwards compat function output. 2021-09-23 22:37:39 -07:00
voussoir bebcd6c7f3
Fix docstring column wrapping. 2021-09-23 22:36:39 -07:00