Skip to content

Commit 8c465c3

Browse files
committed
🚨 refactor conf.py imports for improved clarity and consistency
1 parent caacd4e commit 8c465c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
# For the full list of built-in configuration values, see the documentation:
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55
import os
6+
import re
67
import sys
8+
from pathlib import Path
79

810

911
sys.path.insert(0, os.path.abspath("../src"))
1012

11-
import re
12-
from pathlib import Path
13-
1413
_ROOT = Path(__file__).resolve().parents[1]
1514
_ver_file = _ROOT / "src" / "sqlite3_to_mysql" / "__init__.py"
1615
_m = re.search(r'^__version__\s*=\s*[\'"]([^\'"]+)[\'"]', _ver_file.read_text(encoding="utf-8"), re.M)

0 commit comments

Comments
 (0)