Skip to content

Commit

Permalink
Add contributing file to root (#423)
Browse files Browse the repository at this point in the history
Moved the contribution guidelines from the docs to the root folder.
Included the root-level file in the docs, so no change there.
Resolves #421.
  • Loading branch information
kwinkunks authored Nov 24, 2023
1 parent c8c385b commit ea748d4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
46 changes: 46 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Contributing to pyscal
=========================

* The code is hosted on https://github.com/equinor/pyscal
* Submit bugs on github
* Pull requests are welcome!

Code style
----------

* Use the black formatter to format your code

* ``pip install black``
* ``black <modulename.py>`` -- must be done prior to any pull request.

* Use flake8 code checker

* ``pip install flake8``
* ``flake8 src tests`` must pass before any pull request is accepted
* Exceptions are listed in ``setup.cfg``

* Use pylint to improve coding

* ``pip install pylint``
* Then run ``pylint pyscal``
* Deviations from default (strict) pylint are stored in ``.pylintrc`` at root level,
or as comments in the file e.g. ``# pylint: disable=broad-except``.
* Only use deviations when e.g. black and pylint are in conflict, or if conformity with
pylint would clearly make the code worse or not work at all. Do not use it to
increase pylint score.

* All code must be throroughly tested with ``pytest``.

Building documentation
----------------------

Install the development requirements::

pip install .[tests]

Then, to build the documentation for pyscal run the following command::

python setup.py build_sphinx

And now you can find the start page of the documentation in the
build folder: ``build/sphinx/html/index.html``.
48 changes: 1 addition & 47 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
@@ -1,47 +1 @@

Contributing to pyscal
=========================

* The code is hosted on https://github.com/equinor/pyscal
* Submit bugs on github
* Pull requests are welcome!

Code style
----------

* Use the black formatter to format your code

* ``pip install black``
* ``black <modulename.py>`` -- must be done prior to any pull request.

* Use flake8 code checker

* ``pip install flake8``
* ``flake8 src tests`` must pass before any pull request is accepted
* Exceptions are listed in ``setup.cfg``

* Use pylint to improve coding

* ``pip install pylint``
* Then run ``pylint pyscal``
* Deviations from default (strict) pylint are stored in ``.pylintrc`` at root level,
or as comments in the file e.g. ``# pylint: disable=broad-except``.
* Only use deviations when e.g. black and pylint are in conflict, or if conformity with
pylint would clearly make the code worse or not work at all. Do not use it to
increase pylint score.

* All code must be throroughly tested with ``pytest``.

Building documentation
----------------------

Install the development requirements::

pip install .[tests]

Then, to build the documentation for pyscal run the following command::

python setup.py build_sphinx

And now you can find the start page of the documentation in the
build folder: ``build/sphinx/html/index.html``
.. include:: ../CONTRIBUTING.rst

0 comments on commit ea748d4

Please sign in to comment.