Skip to content

Commit

Permalink
(#12) docs: info project
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Oct 22, 2019
1 parent 44d1a03 commit f0f66d5
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 129 deletions.
1 change: 0 additions & 1 deletion AUTHORS.rst

This file was deleted.

82 changes: 0 additions & 82 deletions CODE_OF_CONDUCT.rst

This file was deleted.

38 changes: 0 additions & 38 deletions CONTRIBUTING.rst

This file was deleted.

12 changes: 4 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fluismayta%2Fzsh-pyenv.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fluismayta%2Fzsh-pyenv?ref=badge_shield)

zsh-pyenv
=========

Expand Down Expand Up @@ -99,7 +97,7 @@ Team
+---------------+
| |Luis Mayta| |
+---------------+
| `luis mayta`_ |
| `Luis Mayta`_ |
+---------------+

License
Expand Down Expand Up @@ -142,11 +140,12 @@ Made with :coffee: and :pizza: by `luis mayta`_ and `hadenlabs`_.
.. Links
.. _`changelog`: CHANGELOG.rst
.. _`contributors`: AUTHORS
.. _`contributing`: CONTRIBUTING.rst
.. _`contributing`: docs/source/CONTRIBUTING.rst

.. _`hadenlabs`: https://github.com/hadenlabs
.. _`luis mayta`: https://github.com/luismayta


.. _`Github`: https://github.com/luismayta
.. _`Linkedin`: https://www.linkedin.com/in/luismayta
.. _`Email`: slovacus@gmail.com
Expand Down Expand Up @@ -176,9 +175,6 @@ Made with :coffee: and :pizza: by `luis mayta`_ and `hadenlabs`_.

.. Dependences:
.. _Python 3.6.4: https://www.python.org/downloads/release/python-364
.. _Pyenv: https://github.com/pyenv/pyenv
.. _Docker: https://www.docker.com/
.. _Docker Compose: https://docs.docker.com/compose/


[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fluismayta%2Fzsh-pyenv.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fluismayta%2Fzsh-pyenv?ref=badge_large)
144 changes: 144 additions & 0 deletions docs/source/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
How To Contribute
=================

.. contents::
:local:

Contributions to zsh-pyenv are welcome.

Getting Started
---------------

.. _commits:

Commits
^^^^^^^

Follow `semantic commits`_ to make :command:`git log` a little easier to follow.

chore
something just needs to happen, e.g. versioning
docs
documentation pages in :file:`_docs/` or docstrings
feat
new code in :file:`src/`
fix
code improvement in :file:`src/`
refactor
code movement in :file:`src/`
style
aesthetic changes
test
test case modifications in :file:`test/`

Examples commit messages:

* (#01) chore: 0.1.0
* (#01) docs: Add configuration setting
* (#01) feat: Create Lambda function
* (#01) fix: Retry upload on failure
* (#01) refactor: Extract duplicate code
* (#01) style: isort, YAPF
* (#01) test: Coverage around add permissions

.. _semantic commits: https://seesparkbox.com/foundry/semantic_commit_messages

Branches
^^^^^^^^

Use `slash convention`_ with the same leaders as :ref:`commits`, e.g.:

* (prefix-task)

Documentation
^^^^^^^^^^^^^

* Use reStructuredText for docstrings and documentation
* For docstrings, follow :ref:`napoleon:example_google`
* For documentation pages, follow the strong guidelines from Python with
:ref:`pythondev:documenting`

.. note::

* Use :file:`.rst` for regular pages
* Use :file:`.rest` for pages included using ``.. include:: file.rest``
(fixes a Sphinx issue that thinks references are duplicated)

Testing
^^^^^^^

Run all unit tests

.. code-block:: bash
make test.all
Run unit tests specified

.. code-block:: bash
make test run={{path}}
Code Submission
---------------

Code Improvement
^^^^^^^^^^^^^^^^

#. See if an `Issue`_ exists

* Comment with any added information to help the discussion

#. Create an `Issue`_ if needed

Code Submission
^^^^^^^^^^^^^^^

#. See if a `Pull Request`_ exists

* Add some comments or review the code to help it along
* Don't be afraid to comment when logic needs clarification

#. Create a Fork and open a `Pull Request`_ if needed

Code Review
^^^^^^^^^^^

* Anyone can review code
* Any `Pull Request`_ should be closed or merged within a week

Code Acceptance
^^^^^^^^^^^^^^^

Try to keep history as linear as possible using a `rebase` merge strategy.

#. One thumb up at minimum, two preferred
#. Request submitter to `rebase` and resolve all conflicts

.. code:: bash
# Update `develop`
git checkout develop
git pull origin develop
# Update `#698` Branch
git flow feature start #698
git rebase develop
# Update remote Branch and Pull Request
git push -f
#. Merge the new feature

.. code:: bash
# Merge `#698` into `develop`
git checkout develop
git merge --ff-only feature/#698
git push
#. Delete merged Branch

.. _Issue: https://github.com/luismayta/zsh-pyenv/issues
.. _Pull Request: https://github.com/luismayta/zsh-pyenv/pulls

0 comments on commit f0f66d5

Please sign in to comment.