Apply isort Mk II (#942)

* Apply isort!
This commit is contained in:
MinchinWeb 2020-05-09 14:14:43 -06:00 committed by GitHub
parent 1cc3f80ba9
commit cfadcd39ca
24 changed files with 107 additions and 89 deletions

View file

@ -1,15 +1,15 @@
#!/usr/bin/env python
# encoding: utf-8
from .text_exporter import TextExporter
from .fancy_exporter import FancyExporter
from .jrnl_importer import JRNLImporter
from .json_exporter import JSONExporter
from .markdown_exporter import MarkdownExporter
from .tag_exporter import TagExporter
from .template_exporter import __all__ as template_exporters
from .text_exporter import TextExporter
from .xml_exporter import XMLExporter
from .yaml_exporter import YAMLExporter
from .template_exporter import __all__ as template_exporters
from .fancy_exporter import FancyExporter
__exporters = [
JSONExporter,

View file

@ -1,10 +1,10 @@
#!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import, unicode_literals, print_function
from .text_exporter import TextExporter
from textwrap import TextWrapper
from .text_exporter import TextExporter
class FancyExporter(TextExporter):
"""This Exporter can convert entries and journals into text with unicode box drawing characters."""

View file

@ -1,8 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
from .text_exporter import TextExporter
import json
from .text_exporter import TextExporter
from .util import get_tags_count

View file

@ -1,11 +1,12 @@
#!/usr/bin/env python
# encoding: utf-8
from .text_exporter import TextExporter
import re
import os
import re
import sys
from ..util import WARNING_COLOR, RESET_COLOR
from ..util import RESET_COLOR, WARNING_COLOR
from .text_exporter import TextExporter
class MarkdownExporter(TextExporter):

View file

@ -1,4 +1,5 @@
import re
import yaml
VAR_RE = r"[_a-zA-Z][a-zA-Z0-9_]*"

View file

@ -1,10 +1,11 @@
#!/usr/bin/env python
# encoding: utf-8
from .text_exporter import TextExporter
from .template import Template
import os
from glob import glob
import os
from .template import Template
from .text_exporter import TextExporter
class GenericTemplateExporter(TextExporter):

View file

@ -1,9 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
from ..util import slugify
import os
from ..util import ERROR_COLOR, RESET_COLOR
from ..util import ERROR_COLOR, RESET_COLOR, slugify
class TextExporter:

View file

@ -1,9 +1,10 @@
#!/usr/bin/env python
# encoding: utf-8
from xml.dom import minidom
from .json_exporter import JSONExporter
from .util import get_tags_count
from xml.dom import minidom
class XMLExporter(JSONExporter):

View file

@ -1,11 +1,12 @@
#!/usr/bin/env python
# encoding: utf-8
from .text_exporter import TextExporter
import os
import re
import sys
from ..util import WARNING_COLOR, ERROR_COLOR, RESET_COLOR
from ..util import ERROR_COLOR, RESET_COLOR, WARNING_COLOR
from .text_exporter import TextExporter
class YAMLExporter(TextExporter):