Merge "H105: also check for Authors and authors"

This commit is contained in:
Jenkins
2015-02-18 03:03:47 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ import tokenize
from hacking import core
AUTHOR_TAG_RE = (re.compile("^\s*#\s*@?(a|A)uthor:"),
AUTHOR_TAG_RE = (re.compile("^\s*#\s*@?(a|A)uthors?:"),
re.compile("^\.\.\s+moduleauthor::"))

View File

@@ -71,8 +71,14 @@ class CoreTestCase(tests.TestCase):
self.assertTrue(comments.hacking_no_author_tags(
'# author: Foo Bar'))
self.assertTrue(comments.hacking_no_author_tags(
'# authors: Foo Bar'))
self.assertTrue(comments.hacking_no_author_tags(
'# Author: Foo Bar'))
self.assertTrue(comments.hacking_no_author_tags(
'# Authors: Foo Bar'))
self.assertTrue(comments.hacking_no_author_tags(
'.. moduleauthor:: Foo Bar'))