This project has optional static typing annotations for Python which can be checked using mypy.
If you have mypy installed (you may also need the type stubs for protobuf: pip install mypy-protobuf), you can typecheck code using:
mypy .
Or faster, with mypy in daemon mode:
dmypy run .
Or, using the Mypy plugin for Intellij.
python -m unittest discover
Or, to run tests for a specific package (eg, edg_core in this command):
python -m unittest discover -s edg.core -t .
Or, to run one specific test:
python -m unittest examples.test_blinky.BlinkyTestCase.test_design_complete
A pre-compiled compiler JAR is included. If you have not modified any of the .scala files, you do not need to recompile the compiler.
- Download and install sbt, a build tool or Scala.
- In the
compiler/folder, runsbt assemblyto compile the compiler JAR file. The system will automatically prefer the locally built JAR file over the pre-compiled JAR and indicate its use through the console. - Optionally, to commit a new pre-compiled JAR, move the newly compiled JAR from
compiler/target/scala-*/edg-compiler-assembly-*-SNAPSHOT.jartoedg_core/resources/edg-compiler-precompiled.jar.