Use pycodestyle instead of PEP8

PEP8 was renamed to pycodestyle; this issue explains why:
https://github.com/PyCQA/pycodestyle/issues/466

This commit changes our tests to use pycodestyle instead of pep8.

It also means:
- making a couple of whitespace changes to appease the linter
- disabling warnings for bare `Except`s (ie `Except` instead of `Except
  ValueError`) – this seems like a sensible thing to catch but I’m not
  going to make meaningful code changes in this commit
This commit is contained in:
Chris Hill-Scott
2017-02-01 09:19:32 +00:00
parent 855a412c90
commit c2999ed5ad
5 changed files with 7 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ Then simply run
make test
```
That will run pep8 for code analysis and our unit test suite. If you wish to run our functional tests, instructions can be found in the
That will run pycodestyle for code analysis and our unit test suite. If you wish to run our functional tests, instructions can be found in the
[notifications-functional-tests](https://github.com/alphagov/notifications-functional-tests) repository.