This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bogdan Kulynych
committed
Sep 23, 2018
1 parent
5dd3f52
commit 94e1ac9
Showing
6 changed files
with
71 additions
and
45 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,44 @@ | ||
============ | ||
Contributing | ||
============ | ||
|
||
Dev setup | ||
========= | ||
|
||
Install dev packages | ||
-------------------- | ||
|
||
Specify the ``[dev]`` option to install the development packages: | ||
|
||
.. code-block:: bash | ||
pip install -e ".[dev]" | ||
Building docs | ||
------------- | ||
|
||
Generate the docs: | ||
|
||
.. code-block:: bash | ||
cd docs | ||
make html | ||
You can then check out the generated HTML: | ||
|
||
.. code-block:: bash | ||
cd docs/build/html | ||
python3 -m http.server | ||
Formatting code | ||
--------------- | ||
|
||
mia's code is formatted using `black <https://github.com/ambv/black>`_. Run the formatter as | ||
follows: | ||
|
||
.. code-block:: bash | ||
make format | ||
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 @@ | ||
|
||
.PHONY: format | ||
format: | ||
black mia tests examples | ||
black setup.py mia tests examples |
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 @@ | ||
.. include:: ../../CONTRIBUTING.rst |
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