Modify hacking flake8 extension

Move hacking files to dir used by the rest of the projects
Use the hacking factory option to allow for additional checks

Change-Id: If498bb4a2d1ce85c51abd04a559e9106febf4027
changes/60/30160/3
Giampaolo Lauria 10 years ago
parent 80b71b8560
commit d50c27d5eb
  1. 0
      tempest/hacking/__init__.py
  2. 4
      tempest/hacking/checks.py
  3. 0
      tools/hacking/__init__.py
  4. 2
      tox.ini

@ -40,3 +40,7 @@ def skip_bugs(physical_line):
if bug_re.match(physical_line) is None:
return (pos, 'T102: Bug number formatted incorrectly')
def factory(register):
register(skip_bugs)

@ -60,7 +60,7 @@ deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
[hacking]
local-check = tools.hacking.tempest.skip_bugs
local-check-factory = tempest.hacking.checks.factory
[flake8]
ignore = E125,H302,H404

Loading…
Cancel
Save