diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-18 09:37:24 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-23 16:45:23 +0200 |
commit | b60376dc289ceae886c7d54d3c5c4074d9969791 (patch) | |
tree | 2e74f55a3b6b14a15cacf4837b4818e13aa33aa2 | |
parent | 3b9e063fe8eea19504cea1bd7764c9631d0c8019 (diff) | |
download | pytest-b60376dc289ceae886c7d54d3c5c4074d9969791.tar.gz |
add pre-commit to CONTRIBUTING.txt
-rw-r--r-- | CONTRIBUTING.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index da73acda2..fabaf0147 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -163,6 +163,7 @@ Short version ~~~~~~~~~~~~~ #. Fork the repository; +#. enable and install pre-commit https://pre-commit.com/ to ensure styleguides and codechecks are followed #. Target ``master`` for bugfixes and doc changes; #. Target ``features`` for new features or functionality changes. #. Follow **PEP-8**. There's a ``tox`` command to help fixing it: ``tox -e fix-lint``. @@ -216,6 +217,16 @@ Here is a simple overview, with pytest-specific bits: If you need some help with Git, follow this quick start guide: https://git.wiki.kernel.org/index.php/QuickStart +#. install pre-commit and install its hook on the pytest repo + + https://pre-commit.com/ is a framework for managing and maintaining multi-language pre-commit hooks + pytest uses pre-commit to ensure code-style and code formatting is the same + + $ pip install --user pre-commit + $ pre-commit install + + Afterwards pre-commit will run whenever you commit. + #. Install tox Tox is used to run all the tests and will automatically setup virtualenvs |