mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
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:
parent
7a465eabeb
commit
c38c39efee
10 changed files with 435 additions and 319 deletions
|
@ -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):
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue