-
Notifications
You must be signed in to change notification settings - Fork 96
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 #172 from KrishnaswamyLab/dev
MAGIC v2.0
- Loading branch information
Showing
24 changed files
with
727 additions
and
636 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,39 @@ | ||
|
||
Contributing to MAGIC | ||
============================ | ||
|
||
There are many ways to contribute to `MAGIC`, with the most common ones | ||
being contribution of code or documentation to the project. Improving the | ||
documentation is no less important than improving the library itself. If you | ||
find a typo in the documentation, or have made improvements, do not hesitate to | ||
submit a GitHub pull request. | ||
|
||
But there are many other ways to help. In particular answering queries on the | ||
[issue tracker](https://github.com/KrishnaswamyLab/MAGIC/issues), | ||
investigating bugs, and [reviewing other developers' pull | ||
requests](https://github.com/KrishnaswamyLab/MAGIC/pulls) | ||
are very valuable contributions that decrease the burden on the project | ||
maintainers. | ||
|
||
Another way to contribute is to report issues you're facing, and give a "thumbs | ||
up" on issues that others reported and that are relevant to you. It also helps | ||
us if you spread the word: reference the project from your blog and articles, | ||
link to it from your website, or simply star it in GitHub to say "I use it". | ||
|
||
Code Style and Testing | ||
---------------------- | ||
|
||
Contributors are encouraged to write tests for their code, but if you do not know how to do so, please do not feel discouraged from contributing code! Others can always help you test your contribution. | ||
|
||
Python code style is dictated by [`black`](https://pypi.org/project/black/#installation-and-usage). To automatically reformat your code when you run `git commit`, you can run `./autoblack.sh` in the root directory of this project to add a hook to your `git` repository. | ||
|
||
Code of Conduct | ||
--------------- | ||
|
||
We abide by the principles of openness, respect, and consideration of others | ||
of the Python Software Foundation: https://www.python.org/psf/codeofconduct/. | ||
|
||
Attribution | ||
--------------- | ||
|
||
This `CONTRIBUTING.md` was adapted from [scikit-learn](https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md). |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title : Rmagic v1.5.0 | ||
title : Rmagic | ||
output: github_document | ||
toc: true | ||
--- | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Rmagic v1.5.0 | ||
Rmagic | ||
================ | ||
|
||
true | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
cat <<EOF >> .git/hooks/pre-commit | ||
#!/bin/sh | ||
set -e | ||
files=\$(git diff --staged --name-only --diff-filter=d -- "*.py") | ||
for file in \$files; do | ||
black -q \$file | ||
git add \$file | ||
done | ||
EOF | ||
chmod +x .git/hooks/pre-commit | ||
|
Oops, something went wrong.