Skip to content

Commit 6e1cd44

Browse files
committed
Streamline conf.py
1 parent dd30168 commit 6e1cd44

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
from pybtex.style.formatting.unsrt import Style as UnsrtStyle
1919
from pybtex.style.template import field, href
2020

21-
ROOT = Path(__file__).parent.parent.resolve()
21+
if TYPE_CHECKING:
22+
from pybtex.database import Entry
23+
from pybtex.richtext import HRef
2224

2325

26+
ROOT = Path(__file__).parent.parent.resolve()
27+
2428
try:
2529
version = metadata.version("mqt.bench")
2630
except ModuleNotFoundError:
@@ -29,9 +33,6 @@
2933

3034
# Filter git details from version
3135
release = version.split("+")[0]
32-
if TYPE_CHECKING:
33-
from pybtex.database import Entry
34-
from pybtex.richtext import HRef
3536

3637
project = "MQT Bench"
3738
author = "Chair for Design Automation, TUM & Munich Quantum Software Company"

0 commit comments

Comments
 (0)