-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(apps): Enhance project configuration, testing and logging
- Added new classifiers to pyproject.toml for better package categorization. - Updated .gitignore to exclude htmlcov directory. - Improved logging in _bootstrap.py for better visibility during template copying and dependency installation. - Enhanced communication management in _communication.py and _execution.py to streamline message handling and improve error reporting. - Refactored widget handling in app.py to ensure consistent session management and improved error handling in template rendering. These changes improve the overall configuration, logging, and communication flow within the application, enhancing maintainability and user experience.
- Loading branch information
1 parent
bb77b1f
commit c0dbc53
Showing
24 changed files
with
2,037 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ node_modules | |
test_apps | ||
|
||
build | ||
htmlcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
default_stages: ["pre-commit", "pre-push"] | ||
default_install_hook_types: [pre-commit, pre-push] | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.4 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.2 | ||
hooks: | ||
- id: mypy | ||
entry: "mypy --strict ./src" | ||
pass_filenames: false | ||
additional_dependencies: | ||
- "types-requests" | ||
- "pytest-asyncio" | ||
- "pydantic" | ||
- "marimo" | ||
- repo: local | ||
hooks: | ||
- id: pytest-check | ||
stages: [pre-push] | ||
types: [python] | ||
name: pytest-check | ||
entry: python -m pytest -v tests/ | ||
language: system | ||
pass_filenames: false | ||
always_run: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .app import create_app as create_app | ||
"""Module containing the app framework.""" | ||
|
||
from .app import create_app as create_app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.