Reformat the code

This commit is contained in:
Stavros Korokithakis 2021-01-27 01:17:09 +02:00
parent 3fb1050670
commit e7e9a41aaf
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63
2 changed files with 13 additions and 3 deletions

View File

@ -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:

View File

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