-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Janelia-Trackathon-2023/documentation_update
README update
- Loading branch information
Showing
3 changed files
with
95 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Traccuracy Developer Notes | ||
|
||
## Development | ||
For local development, clone the repo and install in editable mode. | ||
``` | ||
git clone https://github.com/Janelia-Trackathon-2023/traccuracy.git | ||
cd traccuracy | ||
pip install -e ".[dev]" | ||
``` | ||
|
||
### Testing | ||
Install testing requirements | ||
``` | ||
pip install -e ".[test]" | ||
``` | ||
Run tests | ||
``` | ||
python -m pytest tests | ||
``` | ||
### Style | ||
We utilize `pre-commit` with black (formatting) and ruff (linting). If you would like to run `pre-commit` locally: | ||
``` | ||
pip install -e ".[dev]" | ||
pre-commit install | ||
``` | ||
Alternatively [pre-commit.ci](https://pre-commit.ci/), will run and commit changes on any open PRs. | ||
|
||
### Releases | ||
In order to deploy a new version, tag the commit with a version number and push it to github. This will trigger a github action that will build and deploy to PyPI. (see the "deploy" step in workflows/ci.yml). The version number is determined automatically based on the tag. | ||
``` | ||
git tag -a v0.1.0 -m v0.1.0 | ||
git push --follow-tags | ||
``` | ||
|
||
### Documentation | ||
Documentation is built with Sphinx using `sphinx-autoapi` to automatically generate API documentation at build time. Docs are hosted on ReadTheDocs and build automatically after each push to main. Documentation can be built locally by running the following: | ||
``` | ||
# Install docs requirements | ||
pip install -e ".[docs]" | ||
# Run the build | ||
sphinx-build docs/source docs/_build | ||
``` | ||
|
||
Note that running documentation locally requires Pandoc to be installed as well - https://pandoc.org/installing.html. | ||
|
||
You can view the documentation by opening `docs/_build/index.html` in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters