20cc9b4b98
Signed-off-by: Vacha Shah <vachshah@amazon.com> Signed-off-by: Vacha Shah <vachshah@amazon.com>
1.5 KiB
1.5 KiB
Developer Guide
Linter and Test Suite
Run the linter and test suite to ensure your changes do not break existing code:
# Install Nox for task management
$ python -m pip install nox
# Auto-format and lint your changes
$ nox -rs format
# Run the test suite
$ nox -rs test
Integration Tests
To run the integration tests locally, run:
./.ci/run-tests true 1.3.0
The first argument tells whether to run server with security plugin enabled or not. The second argument specifies the version of OpenSearch the tests should run against, if not specified, the tests run against the latest version.
Note that integration tests require docker to be installed and running, and downloads quite a bit of data from over the internet and hence take few minutes to complete.
Build the Documentation with Sphinx
This are the steps to build the documentation with Sphinx:
- change into the
opensearch-pydirectory wheresetup.pyis located - install opensearch-py - we recommend [editable mode](https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-e
- with bash:
pip install -e .[docs] - with zsh:
pip install -e .\[docs]
- with bash:
- change into the
docsdirectory - execute
make html - use your favorite web browser to open the file called
opensearch-py/docs/build/html/index.html