Skip to content

Commit

Permalink
fix sphinx 7 circular import errors (#384)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>

* autoupdated pre-commit-config.yaml

* import ahbicht (sub)packages conf.py to  clarify namespaces

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
DeltaDaniel and dependabot[bot] authored Dec 19, 2023
1 parent af623a3 commit 74e535e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0 # Replace by any tag/version: https://github.com/psf/black/tags
rev: 23.12.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.8.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
Expand Down
6 changes: 3 additions & 3 deletions dev_requirements/requirements-formatting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ asttokens==2.2.1
backcall==0.2.0
# via ipython
black[jupyter]==23.1.0
# via -r requirements-formatting.in
# via -r dev_requirements/requirements-formatting.in
click==8.1.3
# via black
decorator==5.1.1
Expand All @@ -18,8 +18,8 @@ executing==1.2.0
# via stack-data
ipython==8.11.0
# via black
isort==5.12.0
# via -r requirements-formatting.in
isort==5.13.2
# via -r dev_requirements/requirements-formatting.in
jedi==0.18.2
# via ipython
matplotlib-inline==0.1.6
Expand Down
2 changes: 1 addition & 1 deletion dev_requirements/requirements-linting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ astroid==3.0.1
# via pylint
dill==0.3.7
# via pylint
isort==5.12.0
isort==5.13.2
# via pylint
mccabe==0.7.0
# via pylint
Expand Down
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.join(__location__, "../src"))

# import package ahbicht and subpackage to clarify namespaces and prevent circular import errors
from ahbicht import *
from ahbicht.content_evaluation import *
from ahbicht.expressions import *
from ahbicht.json_serialization import *
from ahbicht.validation import *

# -- Run sphinx-apidoc ------------------------------------------------------
# This hack is necessary since RTD does not issue `sphinx-apidoc` before running
# `sphinx-build -b html . _build/html`. See Issue:
Expand Down

0 comments on commit 74e535e

Please sign in to comment.