-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from leon-thomm/dev
type checking, pyside6 support, updated packages
- Loading branch information
Showing
73 changed files
with
1,659 additions
and
1,382 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Type-check Ryven and ryvencore-qt using mypy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
jobs: | ||
Type-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.x | ||
architecture: x64 | ||
# if we are not on the main branch, install ryvencore from the dev branch from github | ||
# otherise, install ryvencore from the main branch from github | ||
- if: github.ref != 'refs/heads/main' | ||
run: python -m pip install git+https://github.com/leon-thomm/ryvencore.git@dev | ||
- if: github.ref == 'refs/heads/main' | ||
run: python -m pip install git+https://github.com/leon-thomm/ryvencore.git@main | ||
- name: Install ryvencore-qt dependencies | ||
run: python -m pip install . --user | ||
working-directory: ./ryvencore-qt | ||
- name: Install Ryven dependencies | ||
run: python -m pip install . --user | ||
working-directory: ./ryven-editor | ||
- name: Uninstall ryvencore-qt and ryven (keep dependencies) | ||
run: python -m pip uninstall ryven ryvencore-qt --yes | ||
working-directory: ./ryven-editor | ||
- name: Install type-checking dependencies | ||
run: python -m pip install mypy pyside2 pyside6 PySide6-stubs types-Pygments --user | ||
- name: Typecheck | ||
run: mypy | ||
working-directory: . |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# manually debug ryven; ensure that the following packages are | ||
# not installed in the current environment: | ||
# * ryven | ||
# * ryvencore-qt' | ||
# * ryvencore | ||
|
||
RYVEN_PATH = './ryven-editor' | ||
RYVEN_QT_PATH = './ryvencore-qt' | ||
RYVENCORE_PATH = '../ryvencore' | ||
|
||
import sys | ||
|
||
sys.path.insert(0, RYVEN_PATH) | ||
sys.path.insert(0, RYVEN_QT_PATH) | ||
sys.path.insert(0, RYVENCORE_PATH) | ||
|
||
from ryven import run_ryven | ||
|
||
if __name__ == '__main__': | ||
run_ryven( | ||
f"{RYVEN_PATH}/ryven/example_projects/matrices.json", | ||
nodes=[ | ||
f"{RYVEN_PATH}/ryven/example_nodes/examples", | ||
f"{RYVEN_PATH}/ryven/example_nodes/linalg", | ||
], | ||
qt_api='pyside6', | ||
show_dialog=False, | ||
) |
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,21 @@ | ||
# mypy configuration, type-checking both the Ryven editor, and the | ||
# ryvencore-qt library. ryvencore must be installed for this to work. | ||
# Simply run `mypy` in the Ryven root directory to check the code. | ||
|
||
[mypy] | ||
warn_return_any = True | ||
warn_unused_configs = True | ||
warn_unused_ignores = True | ||
files = ryven-editor/ryven, ryvencore-qt/ryvencore_qt | ||
|
||
[mypy-ryven.*] | ||
check_untyped_defs = False | ||
|
||
[mypy-ryven.example_nodes.*] | ||
ignore_errors = True | ||
|
||
[mypy-ryven.main.packages.built_in.*] | ||
ignore_errors = True | ||
|
||
[mypy-ryven.gui.uic.*] | ||
ignore_errors = True |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
This package contains a bunch of nodes for different purposes, to showcase some of Ryven's features. | ||
Some simple nodes are found in `basic_operators.py`, while more advanced ideas are implemented in `special_nodes.py`. |
File renamed without changes.
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.