From e7e9a41aaffb7b2506d1897b7467f1b0c781608d Mon Sep 17 00:00:00 2001 From: Stavros Korokithakis Date: Wed, 27 Jan 2021 01:17:09 +0200 Subject: [PATCH] Reformat the code --- .pre-commit-config.yaml | 1 - joplinexport.py | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e732c01..c842a4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,6 @@ repos: rev: 20.8b1 hooks: - id: black - args: ["-l 90"] - repo: https://github.com/asottile/reorder_python_imports rev: v2.3.6 hooks: diff --git a/joplinexport.py b/joplinexport.py index 552fa30..6d65cae 100755 --- a/joplinexport.py +++ b/joplinexport.py @@ -26,7 +26,16 @@ def slugify(text): class Note: """A helper type for a note.""" - def __init__(self, id, parent_id, parent_title, title, body, updated_time, tags=[]): + def __init__( + self, + id, + parent_id, + parent_title, + title, + body, + updated_time, + tags=[], + ): self.id = id self.parent_id = parent_id self.parent_title = parent_title @@ -150,7 +159,9 @@ class JoplinExporter: ) # Sort "Welcome" last. - folder_list.sort(key=lambda x: x[1].lower().strip() if x[1] != "Welcome" else "0") + folder_list.sort( + key=lambda x: x[1].lower().strip() if x[1] != "Welcome" else "0" + ) self.clean_content_dir()