File: CONTRIBUTING.rst

package info (click to toggle)
elpy 1.34.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,512 kB
  • sloc: lisp: 11,667; python: 3,012; makefile: 167; sh: 60
file content (48 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
====================
Contributing to Elpy
====================

We'd be happy for you to contribute to Elpy.


Setup
=====

You can set up a working environment for Elpy using ``pip`` and
``cask``. After installing Cask_, just run the ``setup`` script:

.. code-block::

   virtualenv ~/.virtualenvs/elpy
   source ~/.virtualenvs/elpy/bin/activate
   ./scripts/setup

.. _Cask: https://cask.readthedocs.io/en/latest/#user-guide


You can now run ``./scripts/test`` to run Elpy's test suite.


Coding Guidelines
=================

Python
------

Please follow `PEP 8`_ in Python source, and provide automated tests
that cover your code. Aim for full coverage of your code.

.. _PEP 8: http://legacy.python.org/dev/peps/pep-0008/


Emacs Lisp
----------

Follow standard Emacs Lisp coding guidelines. All globally defined
symbols should start with ``elpy-``. Mark internal functions with a
double dash, like ``elpy-config--insert-configuration-problems``. Do
not be afraid of long symbol names.

Emacs Lisp tests can be found in the ``test/`` directory. They
generally follow the file name format ``<function-name>-test.el``.
Please provide at least one test per function you define.