1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 09:44:15 +00:00

Skip scrapy.contracts private APIs in the documentation coverage report

This commit is contained in:
Adrián Chaves 2019-06-04 17:10:14 +02:00
parent f755507d68
commit c7ba72b5dc

View File

@ -224,4 +224,17 @@ linkcheck_ignore = [
# Options for the Coverage extension
# ----------------------------------
coverage_ignore_pyobjects = [
# Contracts add_pre_hook and add_post_hook are not documented because
# they should be transparent to contract developers, for whom pre_hook and
# post_hook should be the actual concern.
r'\bContract\.add_(pre|post)_hook$',
# ContractsManager is an internal class, developers are not expected to
# interact with it directly in any way.
r'\bContractsManager\b$',
# For default contracts we only want to document their general purpose in
# 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)$',
]