Merge "H105: also check for Authors and authors"
This commit is contained in:
@@ -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::"))
|
||||
|
||||
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user