A toy example of symbolic differentiation in Python
- Python 3.7+
- It is recommended to use pyenv to install it
- Poetry
- A package manager used to handle dependencies and virtual environments
make check
make doctor
The above command runs:
- vulture to find dead code
- radon to analyze cyclomatic complexity in the code
- bandit to look for security vulnerabilities
make qa
The above command runs:
poetry add <package-name> [--dev]
For more details, see https://python-poetry.org/docs/basic-usage/
The simplest way to debug the code is to run a shell inside the virtual environment created by poetry
:
poetry shell
python
If you want to reinstall everything from scratch (i.e., remove the virtual environment automatically created by make check
or any other make
command):
make nuke