Skip to content

Commit

Permalink
Make ruff sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
madeddie committed May 22, 2024
1 parent 2b314ce commit 5104c16
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
args: [ --select, I, --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
9 changes: 4 additions & 5 deletions src/tyora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import argparse
import json
import logging
from dataclasses import dataclass, field
from enum import Enum
from getpass import getpass
import logging
import json
from urllib.parse import urljoin
from pathlib import Path
from time import sleep
from typing import AnyStr, Optional
from urllib.parse import urljoin
from xml.etree.ElementTree import Element, tostring

from html2text import html2text
import htmlement
import requests

from html2text import html2text

logger = logging.getLogger(name="tyora")

Expand Down
2 changes: 1 addition & 1 deletion stubs/htmlement.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from html.parser import HTMLParser
import io
from html.parser import HTMLParser
from typing import Optional
from xml.etree.ElementTree import Element

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tyora.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tyora
import pytest
import requests_mock
import tyora


def test_parse_args_missing_args() -> None:
Expand Down

0 comments on commit 5104c16

Please sign in to comment.