-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial contrib docs * isort * flake8 * isort * fixes
- Loading branch information
1 parent
6bfedd0
commit 1daba74
Showing
46 changed files
with
625 additions
and
427 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,43 @@ | ||
# Contributing | ||
|
||
We welcome community contributions to the Lightning Pose repo! | ||
If you have found a bug or would like to request a minor change, please | ||
[open an issue](https://github.com/danbider/lightning-pose/issues). | ||
|
||
In order to contribute code to the repo, please follow the steps below. | ||
|
||
You will also need to install the following dev packages: | ||
```bash | ||
pip install flake8 isort | ||
``` | ||
|
||
### Create a pull request | ||
Please fork the Lightning Pose repo, make your changes, and then | ||
[open a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) | ||
from your fork. Please read through the rest of this document before submitting the request. | ||
|
||
### Linting | ||
Linters automatically find (and sometimes fix) formatting issues in the code. We use two, which | ||
are run from the command line in the Lightning Pose repo: | ||
|
||
* `flake8`: warns of syntax errors, possible bugs, stylistic errors, etc. Please fix these! | ||
```bash | ||
flake8 . | ||
``` | ||
|
||
* `isort`: automatically sorts import statements | ||
```bash | ||
isort . | ||
``` | ||
|
||
### Testing | ||
We currently do not have a continuous integration (CI) setup for the Lightning Pose repo due to its | ||
reliance on GPUs (and the relative expense of CI services that provide GPU machines for testing). | ||
Therefore, it is imperative that you run the unit tests yourself and verify that all tests have | ||
passed before submitting your request (and upon each new push to that request). | ||
|
||
To run the tests locally, you must have access to a GPU. Navigate to the Lightning Pose directory | ||
and simply run | ||
```bash | ||
pytest | ||
``` |
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.