Skip to content

Commit

Permalink
chore: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Jun 12, 2024
1 parent fed135c commit e7b0cac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 25 deletions.
23 changes: 2 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ dev_utils = [
"types-Pygments",
"types-Markdown",
"types-humanfriendly",
"types-humanfriendly",
"types-setuptools",
"sqlalchemy-stubs",
"wheel"
Expand Down
4 changes: 2 additions & 2 deletions src/kiara/doc/mkdocs_macros_kiara.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions src/kiara/interfaces/python_api/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e7b0cac

Please sign in to comment.