Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
kompoth committed Apr 2, 2024
1 parent 0247306 commit a5f6f11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions muckraker/md_extensions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import re
import xml.etree.ElementTree as etree
from pathlib import Path

from markdown import Markdown
from markdown.extensions import Extension
from markdown.inlinepatterns import ImageInlineProcessor, IMAGE_LINK_RE
import xml.etree.ElementTree as etree
from markdown.inlinepatterns import IMAGE_LINK_RE, ImageInlineProcessor


class FilterExtension(Extension):
Expand Down
5 changes: 3 additions & 2 deletions muckraker/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pydantic import BaseModel, Field, field_validator, model_validator
from typing import Optional, Literal
import json
from typing import Literal, Optional

from pydantic import BaseModel, Field, field_validator, model_validator

MAX_BODY_LEN = 6000
MAX_STR_LEN = 50
Expand Down
7 changes: 4 additions & 3 deletions muckraker/render.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from pathlib import Path

import nh3
from markdown import Markdown
from jinja2 import Environment, FileSystemLoader
from weasyprint import HTML, CSS
from markdown import Markdown
from weasyprint import CSS, HTML
from weasyprint.text.fonts import FontConfiguration

from .md_extensions import FilterExtension, ImagePathExtension
Expand Down Expand Up @@ -61,8 +62,8 @@ def render_issue(


if __name__ == "__main__":
import sys
import json
import sys

# Load issue configuration
with open(sys.argv[1], "r") as fd:
Expand Down

0 comments on commit a5f6f11

Please sign in to comment.