1
1
Developer Documentation
2
- ================================
2
+ =======================
3
+
4
+ .. toctree ::
5
+ :hidden:
6
+ :titlesonly:
7
+
8
+ ingest_functions
9
+ documentation
10
+
11
+
12
+ Setup
13
+ -----
14
+
15
+ If you'd like to contribute to `astrodb_utils `, first, first make a fork of the repository.
16
+ Then, clone your fork of the repository to your local machine.
17
+ Contributions will be accepted via pull requests from your fork to the primary repository.
18
+
3
19
4
20
Installation
5
- ---------------------
21
+ ------------
6
22
7
23
If you'd like to run tests, make sure to install the package with the optional test dependencies. E.g.,
8
24
@@ -11,13 +27,14 @@ If you'd like to run tests, make sure to install the package with the optional t
11
27
pip install -e " .[test]"
12
28
13
29
Make sure you get the `astrodb-template-db`` submodule. This is required for running tests and building the documentation.
30
+
14
31
.. code-block :: bash
15
32
16
33
git submodule update --init --recursive
17
34
18
35
19
36
Running Tests
20
- ---------------------
37
+ -------------
21
38
22
39
All contributions should include tests. To run the tests, use the command
23
40
@@ -26,28 +43,11 @@ All contributions should include tests. To run the tests, use the command
26
43
pytest
27
44
28
45
Linting and Formatting
29
- ---------------------
46
+ ----------------------
30
47
31
48
Use `ruff <https://docs.astral.sh/ruff/ >`_ for linting and formatting.
32
49
A pre-commit hook is provided for automatic linting and formatting with ruff.
33
50
To use it, run `pip install pre-commit ` and then `pre-commit install --allow-missing-config `.
34
51
35
52
VSCode setup instructions: `Formatting Python in VSCode <https://code.visualstudio.com/docs/python/formatting >`_
36
53
37
- Build the Docs
38
- ---------------------
39
- The documentation is built using files in the `astrodb-template-db ` submodule.
40
- Be sure to update the submodule before building the docs.
41
- .. code-block :: bash
42
-
43
- git submodule update --init --recursive
44
-
45
-
46
- To build the docs, use `sphinx-autobuild <https://pypi.org/project/sphinx-autobuild/ >`_.
47
-
48
- .. code-block :: bash
49
-
50
- pip install -e " .[docs]"
51
- sphinx-autobuild docs docs/_build/html
52
-
53
- The docs will then be available locally at <http://127.0.0.1:8000>.
0 commit comments