OpenSourceHelpCommunity / OpenSourceHelpCommunity.github.io

Open source help community website
http://opensourcehelpcommunity.herokuapp.com/
MIT License
44 stars 57 forks source link

Configure flake8 and yapf with pre-commit #215

Closed vinaypuppal closed 6 years ago

vinaypuppal commented 6 years ago

Checklist

Which issue does this PR fix?: fixes #130

Why do we need this PR?: To ensure that all the code we write follows the standard convention.

What is the new behavior?

Testing instructions:

  1. Change some file/s in codebase.
  2. Add file/s to staging.
  3. Commit file/s to git.
  4. If there is some linting or formatting issue then committing will be stopped.
  5. If its formatting issue yapf will make changes in place so add changed files to staging again and run git commit agin. screen shot 2017-12-25 at 22 35 12 screen shot 2017-12-25 at 22 35 39
  6. If its lint issue fix them, add changed files to staging again and run git commit agin.
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 72.269% when pulling 4586475e8c45f608e829329e17e4670792ba62f1 on vinaypuppal:precommit into ea6096f7e2c062fcddaef66f34fc43769fdc2cbd on OpenSourceHelpCommunity:predev.