Skip to content
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.3.0
hooks:
- id: codespell

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.13.0
hooks:
- id: ruff
- id: ruff-format
Expand Down
2 changes: 1 addition & 1 deletion docs/definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The __YAML__ structure follow the given hierarchy:
1. Proxy type: Unique string representing the type of a given proxy.
1. _tags: Internal key use to capture a list of `labels` for a given proxy so they can be found/filtered later on.
2. Property name: Unique string within current proxy representing an entry in your data model.
1. Property caracteristics:
1. Property characteristics:
1. size: How many values should be stored for that property. Skipping size attribute will imply a size of 1.
If size is superior to 1, or set to -1, the property will be interpreted as a list.
If size is set to -1, the size is dynamic, otherwise it is fixed.
Expand Down
82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[project]
name = "trame-simput"
version = "1.0.2"
description = "Simput implementation for trame "
authors = [
{name = "Kitware Inc."},
]
dependencies = [
"trame-client",
"pyyaml"
]
requires-python = ">=3.9"
readme = "README.rst"
license = {text = "Apache Software License"}
keywords = ["Python", "Interactive", "Web", "Application", "Framework"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]

[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"pytest",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build]
include = [
"src/trame_simput/module/serve/**",
"src/**/*.py",
]

[tool.hatch.build.targets.wheel]
packages = [
"src/trame_simput",
"src/trame",
]

[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
version_variables = ["src/trame_simput/__init__.py:__version__"]
build_command = "pip install uv && uv build"

[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py39"

[tool.ruff.lint]
select = ["E", "W", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []


[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true

# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"

[tool.ruff.lint.pycodestyle]
max-line-length = 120

[lint.pydocstyle]
convention = "google"
34 changes: 0 additions & 34 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def __init__(self, _elem_name, children=None, **kwargs):

class Simput(HtmlElement):
"""
Simput data management component. This must be registered as the root of a layout to provide children with Simput data.
Simput data management component.
This must be registered as the root of a layout to provide children with Simput data.

:param ui_manager: See simput docs |simput_link| for more info
:param domains_manager: See simput docs |simput_link| for more info
Expand Down Expand Up @@ -71,8 +72,8 @@ def update(self, change_set, **kwargs):
List of properties and value to update

>>> change_set = [
... {"id":"12", "name":"Radius", "value": 0.75},
... {"id": "12", "name":"Resolution", "value": 24}
... {"id": "12", "name": "Radius", "value": 0.75},
... {"id": "12", "name": "Resolution", "value": 24},
... ]

"""
Expand Down Expand Up @@ -129,7 +130,8 @@ def auto_update(self, value):

class SimputItem(HtmlElement):
"""
Simput data display component. This must be child of a Simput component to have access to Simput data. See simput docs |simput_link| for more info.
Simput data display component. This must be child of a Simput component to have access to Simput data.
See simput docs |simput_link| for more info.

:param item_id: The simput id of the data to display
:type item_id: str
Expand Down
Loading