check: cleanup file exclusions

Some of these files no longer exist due to being devendored.
BeautifulSoup.py is now something else entirely which is
calibre-specific code and deserves the right to be linted.
This commit is contained in:
Eli Schwartz 2019-04-04 17:04:55 -04:00
parent 4f03b0163f
commit 6526c28bd6
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -30,11 +30,9 @@ class Check(Command):
for x in os.walk(self.j(self.SRC, dname)):
for f in x[-1]:
y = self.j(x[0], f)
if x[0].endswith('calibre/ebooks/markdown'):
continue
if (f.endswith('.py') and f not in (
'feedparser.py', 'markdown.py', 'BeautifulSoup.py', 'dict_data.py',
'unicodepoints.py', 'krcodepoints.py', 'jacodepoints.py', 'vncodepoints.py', 'zhcodepoints.py') and
'dict_data.py', 'unicodepoints.py', 'krcodepoints.py',
'jacodepoints.py', 'vncodepoints.py', 'zhcodepoints.py') and
'prs500/driver.py' not in y) and not f.endswith('_ui.py'):
yield y