Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge script viewer #42

Open
wants to merge 233 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
2084d16
Initial commit
kudep May 11, 2022
fe68c09
master: fix makefile & add new version of db & fix codestyle
kudep May 11, 2022
d7c97b3
master: add examples
kudep May 11, 2022
29dd3c1
main: fix style
kudep May 11, 2022
b21493c
main: upd runner
kudep May 17, 2022
91dedae
main: upd version
kudep May 31, 2022
3e372d7
main: add new example
kudep May 31, 2022
6927fd7
main: fix makefiles
kudep Jun 17, 2022
bc0c470
main: upd makefile
kudep Jun 17, 2022
c97a7a4
main: fix uuid
kudep Jul 6, 2022
4d1e378
main: upd version
kudep Jul 6, 2022
a7dd5b9
first commit
kudep Jul 9, 2022
af1cb55
dev: add parser
kudep Jul 9, 2022
309613d
dev: upd naming
kudep Jul 9, 2022
7b645cf
dev: upd naming
kudep Jul 9, 2022
ff20e08
dev: release 0.2.0
kudep Sep 12, 2022
cd34597
feature/multiple_file_parsing: fix index parsing
RLKRo Sep 19, 2022
2389f8d
pypi release v1
pseusys Sep 27, 2022
9f050e7
pypi release v2
pseusys Sep 27, 2022
8a24b10
feature/graph_export: add py2graph tool
RLKRo Sep 28, 2022
e4f3727
feature/graph_export: add start / fallback labeling to graphs
RLKRo Sep 28, 2022
29c152c
add todos
kudep Sep 28, 2022
d40085e
merge
kudep Sep 28, 2022
be62770
feature/graph_export: rename functions
RLKRo Sep 29, 2022
282d85f
feature/graph_export: replace used functions
RLKRo Sep 29, 2022
aa13f19
feature/graph_export: reformat
RLKRo Sep 29, 2022
2aede11
feature/graph_export: code restructuring
RLKRo Sep 30, 2022
c7fcc07
feature/graph_export: change graph.json structure
RLKRo Sep 30, 2022
fecafee
feature/graph_export: add graph2py
RLKRo Sep 30, 2022
8dd20b0
feature/graph_export: add graph2py
RLKRo Oct 3, 2022
109f5fe
standard docs v2
pseusys Oct 3, 2022
205dca5
Initial commit
ruthenian8 Oct 4, 2022
bc628d8
feature/graph_export: add test, examples
RLKRo Oct 4, 2022
f108784
feature/graph_export: fix codestyle
RLKRo Oct 4, 2022
74958cf
initial commit
ruthenian8 Oct 6, 2022
c5d0a69
update plot
ruthenian8 Oct 7, 2022
651c72a
alter plot creation
ruthenian8 Oct 9, 2022
2ebf060
plot updated
ruthenian8 Oct 9, 2022
c7b33ce
get rounded corners
ruthenian8 Oct 11, 2022
edeb773
add tests, examples
ruthenian8 Oct 17, 2022
965971c
merge/pipeline: Merge pipeline into main repository
RLKRo Oct 18, 2022
aa40f7b
merge/pipeline: Remove author, email, version from dff/core/pipeline/…
RLKRo Oct 18, 2022
b2e050a
merge/parser: change script_parser structure
RLKRo Oct 19, 2022
eb5479d
viewer update
ruthenian8 Oct 20, 2022
39389d0
fix bug
ruthenian8 Oct 20, 2022
037e015
apply formatting
ruthenian8 Oct 20, 2022
75e989d
merge/parser: Initial changes to parser
RLKRo Oct 19, 2022
95d549f
update cli and plot
ruthenian8 Oct 23, 2022
63aa49c
set up new tests
ruthenian8 Oct 23, 2022
3284672
merge/parser: Merge dev into merge/parser
RLKRo Oct 24, 2022
852fbd3
alter tests, add random seed
ruthenian8 Oct 24, 2022
609ef15
change rendering
ruthenian8 Oct 24, 2022
39976dc
add dot saving
ruthenian8 Oct 24, 2022
14f1f28
Merge remote-tracking branch 'origin/dev' into merge/parser
kudep Oct 24, 2022
4619a06
merge/parser: fix test & rm old file
kudep Oct 24, 2022
9e50aa6
Merge remote-tracking branch 'origin/dev' into merge/parser
kudep Oct 25, 2022
38864f6
merge/parser: merge
kudep Oct 27, 2022
600b119
Fix setup.py
RLKRo Oct 28, 2022
3b1671c
Move some examples to tests
RLKRo Oct 28, 2022
11eb17c
fix: tuple parsing inside actor args
RLKRo Oct 30, 2022
e6324c1
Update examples
RLKRo Oct 31, 2022
282272f
Merge branch 'dev' into merge/parser
RLKRo Oct 31, 2022
d9c118a
Update parser integration tests
RLKRo Oct 31, 2022
48bc66e
Reformat source files
RLKRo Oct 31, 2022
4063c54
Revert makefile lint and format targets
RLKRo Oct 31, 2022
1b41d52
Fix Windows tests
RLKRo Oct 31, 2022
e64f177
Merge branch 'dev' into merge/parser
RLKRo Nov 3, 2022
15647ea
test: move parser tests into TEST_CASES dir
RLKRo Nov 3, 2022
fc999d6
style: move mypy config into a separate file
RLKRo Nov 3, 2022
2d7212a
Convert examples.ipynb to py:percent format
RLKRo Nov 8, 2022
4fc1552
Revert mypy_dependencies -> codestyle_dependencies change
RLKRo Nov 8, 2022
8c5ffc7
codestyle: ignore flake8 for parser_tutorial.py
RLKRo Nov 8, 2022
1e888bc
perf: compile regex beforehand
RLKRo Nov 11, 2022
b58fa67
Add source, example, test files
RLKRo Nov 15, 2022
4f32d32
Update module imports
RLKRo Nov 15, 2022
2515e19
Fix examples
RLKRo Nov 15, 2022
6049f9c
Add script_viewer dependencies
RLKRo Nov 15, 2022
b3fc129
feat: add basic parser structure
RLKRo Nov 25, 2022
bd2ac6f
Add __getitem__ to Dict and replace child_paths with append_path
RLKRo Nov 28, 2022
4926315
Split BaseParserObject into Statement and Expression
RLKRo Nov 28, 2022
4a5ea05
Add Import, Namespace, DFFProject
RLKRo Nov 29, 2022
639de17
Remove parent from Namespace.__init__
RLKRo Nov 29, 2022
036184d
Add python3.7 support
RLKRo Nov 29, 2022
ba7e1b3
Add multiple imports test
RLKRo Nov 29, 2022
ab77096
Add Assignment, ImportFrom
RLKRo Nov 30, 2022
242fb2c
Add Name
RLKRo Nov 30, 2022
616b160
Add Attribute
RLKRo Nov 30, 2022
e7f170a
Add Subscript
RLKRo Nov 30, 2022
d92c387
Add Iterable
RLKRo Nov 30, 2022
9586799
Change BaseParserObject.children type to dict[str, BaseParserObject]
RLKRo Nov 30, 2022
8365560
Replace append_path type from list[str] to str
RLKRo Dec 1, 2022
0015925
Add BaseParserObject.add_child
RLKRo Dec 1, 2022
9745990
Add Call
RLKRo Dec 1, 2022
ac8a7cb
Add assert to test_iterable
RLKRo Dec 1, 2022
8af843e
Add name resolution for ReferenceObject
RLKRo Dec 1, 2022
55d83d9
Fix Iterable class
RLKRo Dec 1, 2022
917ae7e
Add from_python to DFFProject
RLKRo Dec 1, 2022
76b6d6e
Add script retrieval
RLKRo Dec 1, 2022
afacfb9
Rename get_script function and add exception if script was not found
RLKRo Dec 1, 2022
115e2a7
Separate actor_call property from script property
RLKRo Dec 1, 2022
8338b17
Add dependency resolution
RLKRo Dec 2, 2022
5c16588
Use resolve_name to compare ReferenceObjects
RLKRo Dec 2, 2022
cd5c8e7
Add comparison with strings
RLKRo Dec 4, 2022
844be4b
Add dependency property to all BaseParserObjects
RLKRo Dec 5, 2022
9dc24d5
Change dependencies property to return a dict instead of a set of tuple
RLKRo Dec 5, 2022
86205fd
Add script resolution
RLKRo Dec 6, 2022
0341ce6
Add Comprehension support, names property
RLKRo Dec 7, 2022
362626c
Fix Unknown ast node processing
RLKRo Dec 7, 2022
35127a9
Add dependency warnings
RLKRo Dec 7, 2022
631d8a9
Add performance todos
RLKRo Dec 7, 2022
a9383d6
Add to_yaml method
RLKRo Dec 7, 2022
e1e4435
perf: Remove unnecessary ast.parse call
RLKRo Dec 7, 2022
f7198f0
Separate dict child name processing as methods
RLKRo Dec 8, 2022
f0f9b54
Add iter and len methods to Iterable class
RLKRo Dec 8, 2022
925e712
Add label type validation to script property
RLKRo Dec 8, 2022
48cdf2b
Add label value validation to resolved_script property
RLKRo Dec 8, 2022
b54ba94
Change yaml specification
RLKRo Dec 8, 2022
0ad99f6
Add to_graph method
RLKRo Dec 8, 2022
b5b5259
Add from_yaml, from_graph methods
RLKRo Dec 8, 2022
baff298
Move validation to DFFProject.__init__
RLKRo Dec 9, 2022
c53a0a6
Explicitly import from base_parser_object
RLKRo Dec 9, 2022
c61f08b
Add to_python
RLKRo Dec 12, 2022
8760a79
Add dump function that dumps code with indentation
RLKRo Dec 15, 2022
c437032
Add object filter to Namespace.dump
RLKRo Dec 15, 2022
fa01a23
Add support for Pipeline.from_script
RLKRo Dec 15, 2022
dbb6b6f
Add engine examples tests
RLKRo Dec 15, 2022
57c348e
Add yaml and graph versions for engine examples
RLKRo Dec 15, 2022
acf93fb
Add parser test generators
RLKRo Dec 15, 2022
a816273
Add human-readable diff files to compare scripts
RLKRo Dec 16, 2022
5747f9e
Add more tests
RLKRo Dec 16, 2022
21407dc
Add warning on changed object order
RLKRo Dec 16, 2022
968d1cf
Add newlines between objects
RLKRo Dec 16, 2022
215829f
fix: dump exception when `statements` is empty and incorrect object f…
RLKRo Dec 16, 2022
7d816f3
fix: python iterable children parsing
RLKRo Dec 16, 2022
215946c
refactor: remove names property
RLKRo Dec 19, 2022
ffec91d
Merge branch 'dev' into feat/parser
RLKRo Dec 26, 2022
92619a0
Adopted new dff structure
RLKRo Dec 27, 2022
0f25d13
Update path to examples
RLKRo Dec 27, 2022
9936880
Add doc for base_parser_object, typing improvements
RLKRo Jan 9, 2023
fe2c9a8
Add another assertion to catch __eq__ bugs
RLKRo Jan 10, 2023
f78bc6c
Use Call.func_name
RLKRo Jan 10, 2023
252c39a
remove itertools.pairwise dependency
RLKRo Jan 10, 2023
2d57941
fix Python string generation
RLKRo Jan 10, 2023
5f69ef9
replace str calls in dump methods with dump methods
RLKRo Jan 12, 2023
ce20a17
doc: remove redundant typing
RLKRo Jan 12, 2023
97d7dc4
add types to Iterable and Comprehension
RLKRo Jan 13, 2023
c3543ea
add doc to Call methods
RLKRo Jan 13, 2023
0b9b280
split tests for different python versions
RLKRo Jan 13, 2023
a21fe23
Add documentation for namespace.py
RLKRo Jan 16, 2023
f5758b3
add assert rewrite
RLKRo Feb 28, 2023
d956137
Merge branch 'dev' into feat/parser
RLKRo Feb 28, 2023
f791cd1
update parser examples
RLKRo Feb 28, 2023
fd35281
remove stmt and expr classes
RLKRo Mar 1, 2023
0f6bb8c
replace type of test param from `Path` to `str`
RLKRo Mar 2, 2023
cf79120
add `true_value` method to compute hash and use in comparisons
RLKRo Mar 3, 2023
a791f4f
fix dump method
RLKRo Mar 3, 2023
dd262a6
doc
RLKRo Mar 3, 2023
8647dcd
add `get` method for Iterable and Dict
RLKRo Mar 3, 2023
510bcc5
typing
RLKRo Mar 3, 2023
9dd2e76
format
RLKRo Mar 3, 2023
4d1c119
replace resolve_name with referenced_object
RLKRo Mar 7, 2023
608db05
add true_value in BPO.__repr__
RLKRo Mar 7, 2023
abcafd1
add tests && exclude lines from coverage
RLKRo Mar 7, 2023
84703ca
mypy fixes
RLKRo Mar 9, 2023
4459a34
remove kwargs from classmethod constructors
RLKRo Mar 10, 2023
f46385c
pylint fixes
RLKRo Mar 10, 2023
abaa421
style
RLKRo Mar 10, 2023
9186fc3
make dependencies property a method
RLKRo Mar 10, 2023
161951d
improve repr methods
RLKRo Mar 12, 2023
2f78147
partial doc + changes
RLKRo Mar 13, 2023
f76dbc9
style
RLKRo Mar 16, 2023
5f9b7ed
add doc for `from_ast`
RLKRo Mar 16, 2023
b205f96
merge feat/parser branch
ruthenian8 Mar 16, 2023
06f7571
doc fixes
RLKRo Mar 16, 2023
8290533
move from dff.script.utils to dff.utils
ruthenian8 Mar 16, 2023
d9d2459
adapt to new script_parser output structure
ruthenian8 Mar 18, 2023
bae9cdb
remove templates; use templates in a separate branch
ruthenian8 Mar 18, 2023
d4ae5d0
obtained a meaningful picture with resolved labels
ruthenian8 Mar 20, 2023
80d3984
Resolve forward and backward labels
ruthenian8 Mar 21, 2023
c69e240
Merge branch 'feat/parser' into merge/script_viewer
ruthenian8 Mar 21, 2023
a3e5a9a
correct files:
ruthenian8 Mar 21, 2023
446602f
adapt tests to new structure; assert that tests are passing
ruthenian8 Mar 21, 2023
3004483
Fix cli bug
ruthenian8 Mar 21, 2023
9d8c96f
use hupper for reloading
ruthenian8 Mar 22, 2023
2426eaf
1) adjust CLI for hot reloading; use 'hupper' library;
ruthenian8 Mar 22, 2023
454ee84
move python code to TEST_CASES; remake examples
ruthenian8 Mar 22, 2023
aba80a7
use viewer instead of script_viewer as cli command
ruthenian8 Mar 23, 2023
fa86210
alter tests && add tests for server
ruthenian8 Mar 23, 2023
d7fd9e1
apply lint
ruthenian8 Mar 23, 2023
2120253
correct spelling mistake
ruthenian8 Mar 24, 2023
943e952
rework examples; remove edges to isolates when not shown
ruthenian8 Mar 24, 2023
e2e9c3e
alter examples: change paths to files to parse
ruthenian8 Mar 24, 2023
014130a
add doc + changes
RLKRo Mar 27, 2023
c35c344
docs: fix warnings
avsakharov Mar 27, 2023
218eac2
Merge branch 'dev' into feat/parser
RLKRo Mar 27, 2023
72c89cb
Merge remote-tracking branch 'origin/feat/parser' into feat/parser
RLKRo Mar 27, 2023
d5906ed
docs: fix lists display
avsakharov Mar 27, 2023
41c81d9
docs: fix linting
avsakharov Mar 28, 2023
216dc3a
Add flag for plotly chord plot
ruthenian8 Mar 29, 2023
52a88d1
apply lint
ruthenian8 Mar 29, 2023
eefcbce
rename examples to tutorials
RLKRo Mar 29, 2023
035013d
add "GLOBAL_NODE" and "LOCAL_NODE" as possible node ids
RLKRo Mar 29, 2023
7c19079
rename engine_example to core_tutorials
RLKRo Mar 29, 2023
d30f883
rename engine_example to core_tutorials
RLKRo Mar 29, 2023
d11095e
fix layout
ruthenian8 Mar 30, 2023
a989763
change test dot files
ruthenian8 Mar 30, 2023
45a89ef
install graphviz in workflows, use 1 as default matrix row sum
ruthenian8 Apr 4, 2023
60de96f
Merge branch 'feat/parser' into merge/script_viewer
ruthenian8 Apr 4, 2023
6770034
update setup.py
ruthenian8 Apr 4, 2023
4ce2c7a
test_cases rework
RLKRo Apr 4, 2023
1f094f4
Merge branch 'dev' into feat/parser
RLKRo Apr 4, 2023
97b0ad3
merge dev
RLKRo Apr 4, 2023
4128ff0
Adapt preprocessing to parser changes; update setup.py; adapt tests;
ruthenian8 Apr 4, 2023
427b3fe
skip tests if dependencies are missing
RLKRo Apr 4, 2023
2053a09
update setup.py
ruthenian8 Apr 5, 2023
104e38a
Merge branch 'feat/parser' into merge/script_viewer
ruthenian8 Apr 5, 2023
afa7035
update test files for viewer
ruthenian8 Apr 5, 2023
30e3205
install graphviz with version for test_coverage
ruthenian8 Apr 5, 2023
e07f5f1
Change numpy version restriction for compatibility with python3.7 env…
ruthenian8 Apr 5, 2023
d0cdd05
try another version specification for graphviz package
ruthenian8 Apr 5, 2023
cfe7e60
remake testing dot files
ruthenian8 Apr 5, 2023
d2b6789
fix graphviz install
ruthenian8 Apr 5, 2023
900498b
add tests for chord plot
ruthenian8 Apr 5, 2023
a83942a
add scipy to requirements
ruthenian8 Apr 5, 2023
a4f793c
additional cli tests
ruthenian8 Apr 5, 2023
c0b3e25
revert changes to test examples
ruthenian8 Apr 5, 2023
2b2639d
doc: add more doc & fix doc errors
RLKRo Apr 5, 2023
b770962
Merge branch 'feat/parser' into merge/script_viewer
ruthenian8 Apr 5, 2023
4bd5fb3
Alter preprocessing, change test files accordingly
ruthenian8 Apr 6, 2023
9151186
change coveragerc; test dash app
ruthenian8 Apr 6, 2023
e4ab54d
apply lint
ruthenian8 Apr 6, 2023
573e8af
improve coverage
ruthenian8 Apr 6, 2023
9ff96cc
Merge branch 'dev' into merge/script_viewer
ruthenian8 Apr 7, 2023
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
19 changes: 18 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# .coveragerc to control coverage.py
[run]
concurrency=thread,greenlet
concurrency=multiprocessing
parallel=true
sigterm=true

[report]
omit =
dff/utils/testing/parser_test_generators.py
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
Expand All @@ -13,3 +17,16 @@ exclude_lines =

# Don't complain if tests don't cover error handling:
except .*

# Don't complain if tests don't cover unreachable code:
if tp.TYPE_CHECKING:
if TYPE_CHECKING:
if typing.TYPE_CHECKING:

# Don't complain if tests don't cover abstract methods:
@abstractmethod

# Don't complain if tests don't cover type overload:
@tp.overload
@overload
@typing.overload
1 change: 1 addition & 0 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

- name: build & install package
run: |
sudo apt install graphviz
python -m pip install build
python -m build
find . -name "*.whl" -exec python -m pip install {}[test_full] ';'
Expand Down
Loading