Skip to content

Commit d07072a

Browse files
authored
🎨 Streamline conf.py (#893)
## Description This PR streamlines `conf.py` by moving two imports to the top of the file. ## Checklist - [x] The pull request only contains commits that are focused and relevant to this change. - [x] ~~I have added appropriate tests that cover the new/changed functionality.~~ - [x] ~~I have updated the documentation to reflect these changes.~~ - [x] ~~I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.~~ - [x] ~~I have added migration instructions to the upgrade guide (if needed).~~ - [x] The changes follow the project's style guidelines and introduce no new warnings. - [x] The changes are fully tested and pass the CI checks. - [x] I have reviewed my own code changes.
1 parent dd30168 commit d07072a

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)