Skip to content

Commit

Permalink
Merge pull request #121 from scottclowe/doc_tidyup
Browse files Browse the repository at this point in the history
DOC: Documentation improvements
  • Loading branch information
scottclowe authored May 3, 2020
2 parents 8e6bcdc + 49118f9 commit e0d7bc8
Show file tree
Hide file tree
Showing 18 changed files with 17,613 additions and 5,592 deletions.
29 changes: 24 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Changelog
=========

All notable changes to this project will be documented here.
All notable changes to FISSA will be documented here.

The format is based on `Keep a
Changelog <https://keepachangelog.com/en/1.0.0/>`__, and this project
adheres to `Semantic
Versioning <https://semver.org/spec/v2.0.0.html>`__.
The format is based on `Keep a Changelog`_, and this project adheres to
`Semantic Versioning`_.

.. _Keep a Changelog: https://keepachangelog.com/en/1.0.0/
.. _Semantic Versioning: https://semver.org/spec/v2.0.0.html

Categories for changes are: Added, Changed, Deprecated, Removed, Fixed,
Security.
Expand All @@ -24,6 +25,8 @@ Version `0.6.4 <https://github.com/rochefort-lab/fissa/tree/0.6.4>`__
Release date: 2020-04-07.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.6.3...0.6.4>`__.

.. _v0.6.4 Fixed:

Fixed
~~~~~

Expand All @@ -37,6 +40,8 @@ Version `0.6.3 <https://github.com/rochefort-lab/fissa/tree/0.6.3>`__
Release date: 2020-04-03.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.6.2...0.6.3>`__.

.. _v0.6.3 Fixed:

Fixed
~~~~~

Expand Down Expand Up @@ -65,6 +70,8 @@ Version `0.6.2 <https://github.com/rochefort-lab/fissa/tree/0.6.2>`__
Release date: 2020-03-11.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.6.1...0.6.2>`__.

.. _v0.6.2 Fixed:

Fixed
~~~~~

Expand All @@ -89,6 +96,8 @@ Version `0.6.1 <https://github.com/rochefort-lab/fissa/tree/0.6.1>`__
Release date: 2019-03-11.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.6.0...0.6.1>`__.

.. _v0.6.1 Fixed:

Fixed
~~~~~

Expand All @@ -111,6 +120,8 @@ Version `0.6.0 <https://github.com/rochefort-lab/fissa/tree/0.6.0>`__
Release date: 2019-02-26.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.5.3...0.6.0>`__.

.. _v0.6.0 Added:

Added
~~~~~

Expand All @@ -126,6 +137,8 @@ Version `0.5.3 <https://github.com/rochefort-lab/fissa/tree/0.5.3>`__
Release date: 2019-02-18.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.5.2...0.5.3>`__.

.. _v0.5.3 Fixed:

Fixed
~~~~~

Expand All @@ -139,6 +152,8 @@ Version `0.5.2 <https://github.com/rochefort-lab/fissa/tree/0.5.2>`__
Release date: 2018-03-07.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.5.1...0.5.2>`__.

.. _v0.5.2 Changed:

Changed
~~~~~~~

Expand All @@ -152,6 +167,8 @@ Version `0.5.1 <https://github.com/rochefort-lab/fissa/tree/0.5.1>`__
Release date: 2018-01-10.
`Full commit changelog <https://github.com/rochefort-lab/fissa/compare/0.5.0...0.5.1>`__.

.. _v0.5.1 Added:

Added
~~~~~

Expand All @@ -164,6 +181,8 @@ Added
script.
(`#13 <https://github.com/rochefort-lab/fissa/pull/13>`__)

.. _v0.5.1 Fixed:

Fixed
~~~~~

Expand Down
96 changes: 47 additions & 49 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ We are glad to accept any sort of documentation: function docstrings,
tutorials, Jupyter notebooks demonstrating implementation details, etc.

reStructuredText documents and notebooks live in the source code
repository under the ``doc/`` directory.
repository under the ``docs`` directory.

Docstrings
~~~~~~~~~~
Expand All @@ -75,34 +75,34 @@ repository <http://github.com/rochefort-lab/fissa/>`__ on GitHub.

2. Clone this copy to your local disk:

::
.. code:: bash
$ git clone [email protected]:YourUserName/fissa.git
$ cd fissa
git clone [email protected]:YourUserName/fissa.git
cd fissa
3. Create a branch to hold and track your changes

::
.. code:: bash
$ git checkout -b my-feature
git checkout -b my-feature
and start making changes.

4. Work on this copy on your computer using Git to do the version
control. When you're done editing, do:

::
.. code:: bash
$ git add modified_files
$ git commit
git add modified_files
git commit
to record your changes in Git, writing a commit message following the
`specifications below <#commit-messages>`__, then push them to GitHub
with:

::
.. code:: bash
$ git push -u origin my-feature
git push -u origin my-feature
5. Finally, go to the web page of your fork of the FISSA repo, and click
'Pull request' to issue a `pull
Expand All @@ -121,18 +121,18 @@ following rules before submitting a pull request.

- All unit tests pass. Check with (from the top level source folder):

::
.. code:: bash
$ pip install pytest
$ py.test
pip install pytest
pytest
- Code with good unit test coverage (at least 90%, ideally 100%). Check
with

::
.. code:: bash
$ pip install pytest pytest-cov
$ py.test --cov=fissa --cov-config .coveragerc
pip install pytest pytest-cov
pytest --cov=fissa --cov-config .coveragerc
and look at the value in the 'Cover' column for any files you have
added or amended.
Expand All @@ -143,44 +143,44 @@ following rules before submitting a pull request.
not covered, or were only partially covered. If necessary, you can do
this as follows:

::
.. code:: bash
$ py.test --cov=fissa --cov-config .coveragerc --cov-report html --cov-report term-missing
$ sensible-browser ./htmlcov/index.html
pytest --cov=fissa --cov-config .coveragerc --cov-report html --cov-report term-missing
sensible-browser ./htmlcov/index.html
- No `pyflakes <https://pypi.python.org/pypi/pyflakes>`__ warnings.
Check with:

::
.. code:: bash
$ pip install pyflakes
$ pyflakes path/to/module.py
pip install pyflakes
pyflakes path/to/module.py
- No `PEP8 <https://www.python.org/dev/peps/pep-0008/>`__ warnings.
Check with:

::
.. code:: bash
$ pip install pep8
$ pep8 path/to/module.py
pip install pep8
pep8 path/to/module.py
AutoPEP8 can help you fix some of the easier PEP8 errors.

::
.. code:: bash
$ pip install autopep8
$ autopep8 -i -a -a path/to/module.py
pip install autopep8
autopep8 -i -a -a path/to/module.py
Note that using the ``-i`` flag will modify your existing file
in-place, so be sure to save any changes made in your editor
beforehand.

These tests can be collectively performed in one line with:

::
.. code:: bash
$ pip install -r requirements-dev.txt
$ py.test --flake8 --cov=fissa --cov-config .coveragerc --cov-report html --cov-report term
pip install -r requirements-dev.txt
pytest --flake8 --cov=fissa --cov-config .coveragerc --cov-report html --cov-report term
Commit messages
~~~~~~~~~~~~~~~
Expand All @@ -194,23 +194,21 @@ guide <https://docs.scipy.org/doc/numpy-1.10.1/dev/gitwash/development_workflow.

You can use these flags at the start of your commit messages:

::

API: an (incompatible) API change
BLD: change related to building the package
BUG: bug fix
CI: change continuous integration build
DEP: deprecate something, or remove a deprecated object
DEV: development tool or utility
DOC: documentation; only change/add/remove docstrings, markdown or comments
ENH: enhancement; add a new feature without removing existing features
JNB: changing a jupyter notebook
MAINT: maintenance commit (refactoring, typos, etc.); no functional change
REL: related to releases
REV: revert an earlier commit
RF: refactoring
STY: style fix (whitespace, PEP8)
TST: addition or modification of tests
| **API**: an (incompatible) API change
| **BLD**: change related to building the package
| **BUG**: bug fix
| **CI**: change continuous integration build
| **DEP**: deprecate something, or remove a deprecated object
| **DEV**: development tool or utility
| **DOC**: documentation; only change/add/remove docstrings, markdown or comments
| **ENH**: enhancement; add a new feature without removing existing features
| **JNB**: changing a jupyter notebook
| **MNT**: maintenance commit (refactoring, typos, etc.); no functional change
| **REL**: related to releases
| **REV**: revert an earlier commit
| **RF**: refactoring
| **STY**: style fix (whitespace, PEP8)
| **TST**: addition or modification of tests
Notes
-----
Expand Down
15 changes: 14 additions & 1 deletion CREDITS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,17 @@ Funding

Citation
--------
\S. W. Keemink, S. C. Lowe, J. M. P. Pakan, E. Dylda, M. C. W. van Rossum, and N. L. Rochefort. FISSA: A neuropil decontamination toolbox for calcium imaging signals, *Scientific Reports*, **8**\(1):3493, 2018. `DOI:10.1038/s41598-018-21640-2 <https://www.doi.org/10.1038/s41598-018-21640-2>`_.
If you use FISSA for your research, we would be grateful if you could cite our
paper on FISSA in any resulting publications:

S. W. Keemink, S. C. Lowe, J. M. P. Pakan, E. Dylda, M. C. W. van Rossum, and N. L. Rochefort. FISSA: A neuropil decontamination toolbox for calcium imaging signals, *Scientific Reports*, **8**\ (1):3493, 2018.
doi: |nbsp| `10.1038/s41598-018-21640-2 <doi_>`_.

For your convenience, we provide a copy of this citation in `bibtex`_ and `RIS`_ format.

.. _doi: https://www.doi.org/10.1038/s41598-018-21640-2
.. _bibtex: https://raw.githubusercontent.com/rochefort-lab/fissa/master/citation.bib
.. _RIS: https://raw.githubusercontent.com/rochefort-lab/fissa/master/citation.ris

.. |nbsp| unicode:: 0xA0
:trim:
Loading

0 comments on commit e0d7bc8

Please sign in to comment.