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()