Merge pull request #3860 from Gallaecio/documentation-coverage

Skip scrapy.downloadermiddlewares private APIs in the documentation c…
This commit is contained in:
Mikhail Korobov 2019-07-08 20:13:55 +05:00 committed by GitHub
commit 488156b15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -237,4 +237,13 @@ coverage_ignore_pyobjects = [
# their constructor, the methods they reimplement to achieve that purpose
# should be irrelevant to developers using those contracts.
r'\w+Contract\.(adjust_request_args|(pre|post)_process)$',
# Methods of downloader middlewares are not documented, only the classes
# themselves, since downloader middlewares are controlled through Scrapy
# settings.
r'^scrapy\.downloadermiddlewares\.\w*?\.(\w*?Middleware|DownloaderStats)\.',
# Base classes of downloader middlewares are implementation details that
# are not meant for users.
r'^scrapy\.downloadermiddlewares\.\w*?\.Base\w*?Middleware',
]