Maya FunctionSet (maya_fn)
A package that decompose core maya.cmds and maya.api features to a set of simple functions.
The recommended approach for running tests is to setup a virtual environment. Edit the
activate.bat script to include the
/src directory and set a
MAYA_LOCATION environment variable, as shown below.
python -m virtualenv venv venv\Scripts\activate.bat pip install -r requirements/dev.txt
# activate.bat set "PYTHONPATH=%VIRTUAL_ENV%\..\src" set "MAYA_LOCATION=C:\Program Files\Autodesk\Maya2020"
You can execute the following
toxruns all environments, including:
tox -e mayaruns the maya tests
tox -e blackruns Black on the code.
tox -e lintruns flake8 and pydocstyles on the code.