Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Nov 18, 2018
1 parent da1b0d4 commit 7747ded
Show file tree
Hide file tree
Showing 25 changed files with 2,159 additions and 183 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ python:
- '3.6'

install:
- pip install -v -e .[dev]
- pip install -e .[dev]

script:
- pytest --cov loguru/

after_success:
- coveralls
- cd docs && make html
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
0.0.1 (2017-09-04)
==================

Initial release
69 changes: 69 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Thank you for considering improving `Loguru`, any contribution is much welcome!

.. _minimal reproducable example: https://stackoverflow.com/help/mcve
.. _open a new issue: https://github.com/Delgan/loguru/issues/new
.. _open a pull request: https://github.com/Delgan/loguru/compare
.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
.. _Loguru: https://github.com/Delgan/loguru

Asking questions
----------------

If you have any question about `Loguru`, if you are seeking for help, or if you would like to suggest a new feature, you are encouraged to `open a new issue`_ so we can discuss it. Bringing new ideas and pointing out elements needing clarification allows to make this library always better!


Reporting a bug
---------------

If you encountered an unexpected behavior using `Loguru`, please `open a new issue`_ so we can fix it as soon as possible! Be as specific as possible in the description of your problem so we can fix it as quickly as possible.

An ideal bug report includes:

* The Python version you are using
* The `Loguru` version you are using (you can find it with ``print(loguru.__version__)``)
* Your operating system name and version
* Your development environment and local setup (IDE, Terminal, project context, anything that could be useful)
* Some `minimal reproducable example`_


Implementing changes
--------------------

If you are willing to enhance `Loguru` by implementing non-trivial changes, please `open a new issue`_ first to keep a reference about why such modifications are made (and potentialy avoid unneeded work). Then, the workflow would look as follow:

1. Fork the `Loguru`_ project from Github
2. Clone the repository locally::

$ git clone git@github.com:your_name_here/loguru.git
$ cd loguru

3. Activate your virtual environment::

$ python -m virtualenv env
$ source env/bin/activate

4. Create a new branch from ``master``::

$ git checkout master
$ git branch fix_bug
$ git checkout fix_bug

5. Install `Loguru` in development mode::

$ pip install -e .[dev]

6. Implement the modifications wished. During the process of development, honor `PEP 8`_ as much as possible.
7. Add unit tests (don't hesitate to be exhaustive!) and ensure none are failing using::

$ pytest tests

8. Remember to update documentation if required
9. Update the ``changelog.rst`` file with what you improved
10. ``add`` and ``commit`` your changes, ``rebase`` your branch on ``master``, ``push`` your local project::

$ git add .
$ git commit -m 'Add succinct explanation of what changed'
$ git rebase master
$ git push origin fix_bug

11. Finally `open a pull request`_ before getting it merged!

0 comments on commit 7747ded

Please sign in to comment.