Guides
API
Data integrations
- Add a new source to the data integration pipeline
- Add a new destination to the data integration pipeline
Streaming pipelines
IO classes
Style guide
Linter
Installflake8
in your IDE to lint the Python code.
To run the linter locally, execute this script:
Testing
Unit tests
Add unit tests for the feature in mage_ai/tests directory. To run the tests locally, execute this script:- Find out the backend server container name, with the command
docker container ls
in a terminal:
- Start an interactive
bash
session with the backend server container:
- Run unit tests with the following command:
Debugging
Instead of usingbreakpoint()
, add the following line to your code where you
want a debug:
docker ps
and look in the NAMES
column.