Reformat the code
This commit is contained in:
parent
3fb1050670
commit
e7e9a41aaf
@ -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:
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user