Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.44 KB

CONTRIBUTING.rst

File metadata and controls

65 lines (39 loc) · 1.44 KB

Contributing

Here's how to set up exec-wrappers for local development:

  1. Fork the exec-wrappers repo on GitHub.
  2. Clone your fork locally and install flake8 pre-commit hook
git clone https://github.com/your_name_here/exec-wrappers.git
cd exec-wrappers
flake8 --install-hook=git
git config --local flake8.strict true
  1. Create a new virtualenv environment for developing
virtualenv -p python2.7 venv
source venv/bin/activate  # If using bash, otherwise use the appropriate activate script
pip install -r requirements.txt
  1. Create a branch for local development
git checkout -b name-of-your-bugfix-or-feature

Now you can make your changes locally.

  1. After each change make sure the tests still pass
pytest tests
  1. Commit your changes and push your branch to GitHub
black .
git add .
git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-feature
  1. Submit a pull request through the GitHub website.

Tips

To run a specific test:

pytest tests -k test_name

Sometimes is very useful to see a coverage report to check if you are forgetting to test something. To generate an html report:

pytest --cov exec_wrappers --cov-config .coveragerc --cov-report html tests