Update dependencies - pyxdg, pytest, black (#1076)

* Update version pin on pyxdg and run poetry update
* Update pytest pin and rerun poetry update
* Update black pin to latest version, poetry update, and make format
This commit is contained in:
Micah Jerome Ellison 2020-11-14 11:29:51 -08:00 committed by Jonathan Wren
parent 7a465eabeb
commit c38c39efee
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
10 changed files with 435 additions and 319 deletions

View file

@ -248,7 +248,10 @@ class Journal:
to_delete = []
def ask_delete(entry):
return yesno(f"Delete entry '{entry.pprint(short=True)}'?", default=False,)
return yesno(
f"Delete entry '{entry.pprint(short=True)}'?",
default=False,
)
for entry in self.entries:
if ask_delete(entry):

View file

@ -276,10 +276,15 @@ def parse_args(args=[]):
help="Show only titles or line containing the search tags",
)
exporting.add_argument(
"-s", dest="short", action="store_true", help=argparse.SUPPRESS,
"-s",
dest="short",
action="store_true",
help=argparse.SUPPRESS,
)
exporting.add_argument(
"-o", dest="filename", help=argparse.SUPPRESS,
"-o",
dest="filename",
help=argparse.SUPPRESS,
)
# Handle '-123' as a shortcut for '-n 123'

View file

@ -29,7 +29,8 @@ def configure_logger(debug=False):
return
logging.basicConfig(
level=logging.DEBUG, format="%(levelname)-8s %(name)-12s %(message)s",
level=logging.DEBUG,
format="%(levelname)-8s %(name)-12s %(message)s",
)
logging.getLogger("parsedatetime").setLevel(logging.INFO)
logging.getLogger("keyring.backend").setLevel(logging.ERROR)

View file

@ -48,7 +48,12 @@ default_config = {
"highlight": True,
"linewrap": 79,
"indent_character": "|",
"colors": {"date": "none", "title": "none", "body": "none", "tags": "none",},
"colors": {
"date": "none",
"title": "none",
"body": "none",
"tags": "none",
},
}

View file

@ -182,7 +182,8 @@ def _get_editor_template(config, **kwargs):
except OSError:
logging.error("Write mode: template not loaded")
print(
f"[Could not read template at '{config['template']}']", file=sys.stderr,
f"[Could not read template at '{config['template']}']",
file=sys.stderr,
)
sys.exit(1)