A template repository for linting, testing, GUI building and dockerizing python scripts.
- Replace
YOURUSERNAMEandIMAGENAMEin.github/workflows/docker-image.yml[or delete file]. - Replace test data in
datawith your own data [or delete if you don't have test data]. - Adjust
.gitattributesaccording to your needs. - Adjust
.gitignoreaccording to your needs. - Setup your
CITATION.cffaccording to your needs [or delete file]. - Replace dummy values in
Dockerfileand write image instructions. - Replace copyright name in
LICENSE. - Replace lines 10 - 13 and write your script in
main.py. - Replace lines 10 - 13 and write your gui in
gui/streamlit_app.py. - Replace lines 3 - 6 and write tests in
tests/test_main.py. - Add your requirements to
requirements.txt. - Document your script with Sphinx:
- Install Sphinx and the PyData theme:
pip install sphinx pydata-sphinx-theme. - Adjust the configuration to your needs in
docs_src/conf.py. - Write documentation!
- Build documentation with:
sphinx-apidoc -f -o docs_src . sphinx-build -b html docs_src docs - Publish documentation [optional]!
- Serving with GitHub pages needs the addition of an empty
.nojekyllfile to your/docs.
- Serving with GitHub pages needs the addition of an empty
- Install Sphinx and the PyData theme:
- Adjust this
README.mdto your needs!
If you are using PLACEHOLDER script please cite:
Very important title
Important Author, and Another Important Author
Journal of Cool Stuff 2023 12 (3), 4567-4589
DOI: 12.3456/cool-stuff