-
Notifications
You must be signed in to change notification settings - Fork 103
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 #675 from theislab/release/0.2.4
Release/0.2.4
- Loading branch information
Showing
85 changed files
with
4,213 additions
and
2,922 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
filename = *.py | ||
exclude = | ||
.git, | ||
__pycache__, | ||
docs/* | ||
# F403: unable to detect undefined names | ||
# F405: undefined, or defined from star imports | ||
# W503: Linebreak before binary operator | ||
ignore = F403, F405, W503 |
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
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
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,78 @@ | ||
Contributing guide | ||
================== | ||
|
||
|
||
Getting started | ||
^^^^^^^^^^^^^^^ | ||
|
||
Contributing to scVelo requires a developer installation. As a first step, we suggest creating a new environment | ||
|
||
.. code:: bash | ||
conda create -n ENV_NAME python=PYTHON_VERSION && conda activate ENV_NAME | ||
Following, fork the scVelo repo on GitHub `here <https://github.com/theislab/scvelo>`. | ||
If you are unsure on how to do so, please checkout the corresponding | ||
`GitHub docs <https://docs.github.com/en/github/getting-started-with-github/quickstart/fork-a-repo>`. | ||
You can now clone your fork of scVelo and install the development mode | ||
|
||
.. code:: bash | ||
git clone https://github.com/YOUR-USER-NAME/scvelo.git | ||
cd scvelo | ||
git checkout --track origin/develop | ||
pip install -e '.[dev]' | ||
The last line can, alternatively, be replaced by | ||
|
||
.. code:: bash | ||
pip install -r requirements-dev.txt | ||
Finally, to make sure your code follows our code style guideline, install pre-commit: | ||
|
||
.. code:: bash | ||
pre-commit install | ||
Coding style | ||
^^^^^^^^^^^^ | ||
|
||
Our code follows `black` and `flake8` coding style. Code formatting (`black`, `isort`) is automated through pre-commit hooks. In addition, we require that | ||
|
||
- functions are fully type-annotated. | ||
- variables referred to in an error/warning message or docstrings are enclosed in \`\`. | ||
|
||
|
||
Testing | ||
^^^^^^^ | ||
|
||
To run the implemented unit tests locally, simply run | ||
|
||
.. code:: bash | ||
python -m pytest | ||
Documentation | ||
^^^^^^^^^^^^^ | ||
|
||
The docstrings of scVelo largely follow the `numpy`-style. New docstrings should | ||
|
||
- include neither type hints nor return types. | ||
- reference an argument within the same docstrings using \`\`. | ||
|
||
|
||
Submitting pull requests | ||
^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
New features and bug fixes are added to the code base through a pull request (PR). To implement a feature or bug fix, create a branch from `develop`. For hotfixes use `master` as base. The existence of bugs suggests insufficient test coverage. As such, bug fixes should, ideally, include a unit test or extend an existing one. Please ensure that | ||
|
||
- branch names have the prefix `feat/`, `bug/` or `hotfix/`. | ||
- your code follows the project conventions. | ||
- newly added functions are unit tested. | ||
- all tests pass locally. | ||
- if there is no issue solved by the PR, create one outlining what you try to add/solve and reference it in the PR description. |
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
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
import os | ||
import warnings | ||
|
||
|
||
__licence__ = "BSD (3 clause)" | ||
|
||
|
||
|
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
Oops, something went wrong.