Umut
4b3fb772b8
chore: integrate checking whether notebooks are sanitized into the pcc target
2021-08-24 10:56:54 +03:00
Arthur Meyre
f91092ac38
tools: update pytest make target to have a report on coverage
...
- allows to have coverage information without using make coverage
- make coverage remains recommended to check a commit's content
2021-08-20 09:53:02 +02:00
Umut
94fef5e202
feat(debugging): provide a way to export the drawn graph as a png file
2021-08-18 17:33:19 +03:00
Umut
1b33cd7307
feat(Makefile): enable jupyter notebook support in docker environment
2021-08-18 14:49:09 +03:00
Arthur Meyre
5d26ad499a
fix(build): properly serialize calls to mypy
...
- add an helper script to serialize make commands
- serialize mypy commands as they may overwrite each others cache
- format coverage command to avoid being ridiculously long
2021-08-18 12:23:53 +02:00
Umut
2dda00aeef
chore(Makefile): add -s flag to pytest to improve the output of compiler tests
2021-08-18 11:31:06 +03:00
Arthur Meyre
63eac35a43
build: launch pcc targets in parallel to speed up checks
...
- change call in github actions as proper flags are in the Makefile
- change mypy_ci target to avoid cache issues with multiple mypy instances
2021-08-17 18:27:31 +02:00
Umut
8df212ff49
bench: create the benchmarking infrastructure
2021-08-17 13:17:28 +03:00
Arthur Meyre
8dfed58829
chore(tools): add flake8 linter, flake8-bugbear plugin and fix issues
...
- remove detected `from hdk imports` (use relative imports instead) we ARE
the package
- change the way Float32 and Float64 are defined
2021-08-17 09:22:39 +02:00
Umut
479176e368
doc(examples): create quantized linear and logistic regression examples
2021-08-16 15:57:18 +03:00
Arthur Meyre
048bb61e8e
fix(tools): add git to the docker image to be able to make coverage
...
- move comment in Makefile and make it silent
2021-08-13 18:11:43 +02:00
Umut
8fd0ae5c85
feat(docker): create a docker environment to test and develop MLIR stuff
2021-08-12 10:51:26 +03:00
Benoit Chevallier-Mames
8f3e461e3b
fix: docstring following google conventions
...
refs #122
2021-08-11 18:11:56 +02:00
Benoit Chevallier-Mames
765df12a2d
doc: add autogenerated doc in sphinx
...
refs #118
2021-08-11 15:23:11 +02:00
Arthur Meyre
e296e9667e
chore(tools): use /bin/bash as shell for the Makefile
...
- tested some commands with an environment which had /bin/sh as default
shell, some did not work, this fixes it
2021-08-11 10:40:00 +02:00
Arthur Meyre
f910f1fa9c
chore(tools): add user friendly coverage make command
...
- add a command allowing to run tests and coverage in one go
2021-07-27 12:14:42 +02:00
Arthur Meyre
deb7631a3a
chore(tools): add mypy_test and mypy_ci target
...
- update tests that were failing with new mypy check
- mypy_test runs mypy on all .py source files in tests
- mypy_ci runs mypy and mypy_test, mypy is for source i.e. hdk/ only
2021-07-26 18:28:39 +02:00
Arthur Meyre
a060aaae99
feat(tracing): add tracing facilities
...
- add BaseTracer which will hold most of the boilerplate code
- add hnumpy with a bare NPTracer and tracing function
- update IR to be compatible with tracing helpers
- update test helper to properly check that graphs are equivalent
- add test tracing a simple addition
- rename common/data_types/helpers.py to .../dtypes_helpers.py to avoid
having too many files with the same name
- ignore missing type stubs in the default mypy command
- add a comfort Makefile target to get errors about missing mypy stubs
2021-07-26 17:05:53 +02:00
Arthur Meyre
36d93a60d9
chore(tools): add mypy as dev tool but don't check in CI for now
...
- we'll see if the benefits of static typing are worth it or not
2021-07-19 16:25:24 +02:00
Arthur Meyre
7dccfa649c
build(tests): add tests and coverage to CI workflow
...
#refs 15
2021-07-16 12:25:10 +02:00
Arthur Meyre
a2185af578
tests: add test structure and dependencies
...
- add unique ID generator to hdk and unit test it
refs #15
2021-07-16 12:25:10 +02:00
aquint-zama
ae992e4cdc
docs: move to sphinx
...
relates #15
2021-07-15 16:56:53 +02:00
Arthur Meyre
58e35136f5
chore(tools): add Makefile, formatting script, pylintrc and dependencies
...
refs #15
2021-07-15 11:46:19 +02:00