diff --git a/Makefile b/Makefile index 3e51b2b30..45972a7f6 100644 --- a/Makefile +++ b/Makefile @@ -46,42 +46,23 @@ init: clean ## initialize a development environment (to be run in virtualenv) pre-commit run --all-files || true git add "*" ".*" -update-modules: ## update default modules dependency - pip install --extra-index-url https://pypi.fury.io/dharpa/ --extra-index-url https://gitlab.com/api/v4/projects/25344049/packages/pypi/simple -U -e '.[modules_all]' - -setup-cfg-fmt: # format setup.cfg - setup-cfg-fmt setup.cfg || true - -black: ## run black - black --config pyproject.toml setup.py src/kiara tests - -flake: ## check style with flake8 - flake8 src/kiara tests - mypy: ## run mypy mypy src/kiara test: ## run tests quickly with the default Python py.test -test-all: ## run tests on every Python version with tox - tox - coverage: ## check code coverage quickly with the default Python coverage run -m pytest tests coverage report -m coverage html xdg-open htmlcov/index.html -check: black flake mypy test ## run dev-related checks - render-api: kiara render --source-type base_api --target-type kiara_api item kiara_api template_file=src/kiara/interfaces/python_api/kiara_api.py target_file=src/kiara/interfaces/python_api/kiara_api.py pre-commit: ## run pre-commit on all files pre-commit run --all-files -dist: clean ## build source and wheel packages - python setup.py sdist - python setup.py bdist_wheel - ls -l dist +doc: ## build documentation + mkdocs build diff --git a/mkdocs.yml b/mkdocs.yml index 5721da118..b0e80d2a5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -64,7 +64,7 @@ plugins: - kiara.doc.mkdocs_macros_kiara - gen-files: scripts: - - scripts/documentation/gen_info_pages.py +# - scripts/documentation/gen_info_pages.py - scripts/documentation/gen_api_doc_pages.py - literate-nav: nav_file: SUMMARY.md diff --git a/pyproject.toml b/pyproject.toml index ae26a99a6..71165fb4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -275,7 +275,6 @@ dev_utils = [ "types-Pygments", "types-Markdown", "types-humanfriendly", - "types-humanfriendly", "types-setuptools", "sqlalchemy-stubs", "wheel" diff --git a/src/kiara/doc/mkdocs_macros_kiara.py b/src/kiara/doc/mkdocs_macros_kiara.py index fc6089b84..8e4f574b5 100644 --- a/src/kiara/doc/mkdocs_macros_kiara.py +++ b/src/kiara/doc/mkdocs_macros_kiara.py @@ -11,11 +11,11 @@ from pydantic import BaseModel -from kiara.context import Kiara, KiaraContextInfo +from kiara.context import KiaraContextInfo from kiara.utils.yaml import StringYAML yaml = StringYAML() -kiara_obj = Kiara.instance() +# kiara_obj = Kiara.instance() def define_env(env): diff --git a/src/kiara/interfaces/python_api/value.py b/src/kiara/interfaces/python_api/value.py index 4d7012e68..debc606f5 100644 --- a/src/kiara/interfaces/python_api/value.py +++ b/src/kiara/interfaces/python_api/value.py @@ -47,6 +47,7 @@ def create_renderable(self, **config) -> RenderableType: table.add_column("value") table.add_row("value_id", str(self.value.value_id)) + if self.aliases: if len(self.aliases) > 1: a = "aliases"