Skip to content

Commit 935deac

Browse files
committed
Reorder imports for consistency and PEP8 compliance
Imports in setup.py, __init__.py, and _convert.py were reordered to follow PEP8 guidelines and improve readability. No functional changes were made.
1 parent 1bf80c9 commit 935deac

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from pathlib import Path
3-
from setuptools import setup, find_packages
3+
4+
from setuptools import find_packages, setup
45

56
version = [
67
line

sphinx_togglebutton/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""A small sphinx extension to add "toggle" buttons to items."""
22

33
import os
4-
from docutils.parsers.rst import Directive, directives
5-
from docutils import nodes
64

5+
from docutils import nodes
6+
from docutils.parsers.rst import Directive, directives
77
from sphinx.locale import get_translation
88

99
MESSAGE_CATALOG_NAME = "togglebutton"

sphinx_togglebutton/translations/_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import os
3-
from pathlib import Path
43
import subprocess
4+
from pathlib import Path
55

66
MESSAGE_CATALOG_NAME = "togglebutton"
77

0 commit comments

Comments
 (0)