mirror of
https://github.com/certbot/certbot.git
synced 2026-01-23 07:20:55 +03:00
1.7 KiB
1.7 KiB
The Let's Encrypt Client Project
Hacking
In order to start hacking, you will first have to create a development environment:
./venv/bin/python setup.py dev
The code base, including your pull requests, must
have 100% test statement coverage and be compliant with
the coding-style.
The following tools are there to help you:
./venv/bin/toxstarts a full set of tests. Please make sure you run it before submitting a new pull request../venv/bin/tox -e coverchecks the test coverage only../venv/bin/tox -e lintchecks the style of the whole project, while./venv/bin/pylint --rcfile=.pylintrc filewill check a single file only.
Coding style
Please:
Be consistent with the rest of the code.
Follow the Google Python Style Guide, with the exception that we use Sphinx-style documentation:
def foo(arg): """Short description. :param int arg: Some number. :returns: Argument :rtype: int """ return argRemember to use
./venv/bin/pylint.
Updating the Documentation
In order to generate the Sphinx documentation, run the following commands.
cd docs
make clean html SPHINXBUILD=../venv/bin/sphinx-build
This should generate documentation in the
docs/_build/html directory.