Developer Documentation#
Installation#
If you’d like to run tests, make sure to install the package with the optional test dependencies. E.g.,
pip install -e ".[test]"
Make sure you get the astrodb-template-db` submodule. This is required for running tests and building the documentation.
git submodule update --init --recursive
Running Tests#
All contributions should include tests. To run the tests, use the command
pytest
Linting and Formatting#
Use ruff for linting and formatting. A pre-commit hook is provided for automatic linting and formatting with ruff. To use it, run pip install pre-commit and then pre-commit install –allow-missing-config.
VSCode setup instructions: Formatting Python in VSCode