Adding checking for back except, and exclude template and generated file from pep8 checks
@@ -58,6 +58,7 @@ github_project = astropy/astroquery
# E711 - comparison to None should be 'if cond is None:'
# E712 - comparison to True should be 'if cond is True:' or 'if cond:'
# E714 - test for object identity should be 'is not'
+# E722 - do not use bare except
# E901 - SyntaxError or IndentationError
# E902 - IOError
# W191 - use of tabs
@@ -66,17 +67,19 @@ github_project = astropy/astroquery
# W293 - trailing whitespace
# W391 - blank line at end of file
-
# If you want to exclude a line from checking, simply add ' # noqa' at the
# end of the line
[pycodestyle]
-select = E101,E111,E112,E113,E124,E201,E202,E203,E211,E221,E225,E231,E241,E251,E261,E265,E271,E272,E301,E302,E303,E305,E502,E703,E711,E712,E714,E901,E902,W191,W291,W292,W293,W391
+select = E101,E111,E112,E113,E124,E201,E202,E203,E211,E221,E225,E231,E241,E251,E261,E265,E271,E272,E301,E302,E303,E305,E502,E703,E711,E712,E714,E722,E901,E902,W191,W291,W292,W293,W391
# E402 module level import not at top of file
# We need to ignore this as the .conf has to be set in the __init__.py
# before the modules are imported.
ignore = E402
+# Excluding files that are directly copied from the package template or
+# generated
+exclude = _astropy_init.py,version.py
[entry_points]
