Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sphinx 7 circular import errors #384

Merged
merged 4 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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