Skip to content

Commit

Permalink
Typing: Tox env, CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Jun 18, 2020
1 parent 5d54173 commit 7babf35
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ htmlcov/
.pytest_cache/
.coverage.*
.cache/
.mypy_cache/

# Windows
Thumbs.db
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ matrix:
python: 3.8
- env: TOXENV=docs
python: 3.7 # Keep in sync with .readthedocs.yml
- env: TOXENV=typing
python: 3.8

- env: TOXENV=pypy3
- env: TOXENV=pinned
Expand Down
171 changes: 171 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,174 @@ doc_files = docs AUTHORS INSTALL LICENSE README.rst

[bdist_wheel]
universal=1

[mypy]
ignore_missing_imports = true
follow_imports = skip

# FIXME: remove the following sections once the issues are solved

[mypy-scrapy]
ignore_errors = True

[mypy-scrapy._monkeypatches]
ignore_errors = True

[mypy-scrapy.commands]
ignore_errors = True

[mypy-scrapy.commands.bench]
ignore_errors = True

[mypy-scrapy.commands.parse]
ignore_errors = True

[mypy-scrapy.downloadermiddlewares.httpproxy]
ignore_errors = True

[mypy-scrapy.contracts]
ignore_errors = True

[mypy-scrapy.core.spidermw]
ignore_errors = True

[mypy-scrapy.interfaces]
ignore_errors = True

[mypy-scrapy.item]
ignore_errors = True

[mypy-scrapy.http.cookies]
ignore_errors = True

[mypy-scrapy.mail]
ignore_errors = True

[mypy-scrapy.pipelines.images]
ignore_errors = True

[mypy-scrapy.settings.default_settings]
ignore_errors = True

[mypy-scrapy.spidermiddlewares.referer]
ignore_errors = True

[mypy-scrapy.utils.httpobj]
ignore_errors = True

[mypy-scrapy.utils.request]
ignore_errors = True

[mypy-scrapy.utils.response]
ignore_errors = True

[mypy-scrapy.utils.spider]
ignore_errors = True

[mypy-scrapy.utils.trackref]
ignore_errors = True

[mypy-tests.mocks.dummydbm]
ignore_errors = True

[mypy-tests.spiders]
ignore_errors = True

[mypy-tests.test_cmdline_crawl_with_pipeline.test_spider.spiders.exception]
ignore_errors = True

[mypy-tests.test_cmdline_crawl_with_pipeline.test_spider.spiders.normal]
ignore_errors = True

[mypy-tests.test_command_fetch]
ignore_errors = True

[mypy-tests.test_command_parse]
ignore_errors = True

[mypy-tests.test_command_shell]
ignore_errors = True

[mypy-tests.test_command_version]
ignore_errors = True

[mypy-tests.test_contracts]
ignore_errors = True

[mypy-tests.test_crawler]
ignore_errors = True

[mypy-tests.test_downloader_handlers]
ignore_errors = True

[mypy-tests.test_engine]
ignore_errors = True

[mypy-tests.test_exporters]
ignore_errors = True

[mypy-tests.test_http_request]
ignore_errors = True

[mypy-tests.test_linkextractors]
ignore_errors = True

[mypy-tests.test_loader]
ignore_errors = True

[mypy-tests.test_pipeline_crawl]
ignore_errors = True

[mypy-tests.test_pipeline_files]
ignore_errors = True

[mypy-tests.test_pipeline_images]
ignore_errors = True

[mypy-tests.test_pipelines]
ignore_errors = True

[mypy-tests.test_request_cb_kwargs]
ignore_errors = True

[mypy-tests.test_request_left]
ignore_errors = True

[mypy-tests.test_scheduler]
ignore_errors = True

[mypy-tests.test_signals]
ignore_errors = True

[mypy-tests.test_spiderloader.test_spiders.nested.spider4]
ignore_errors = True

[mypy-tests.test_spiderloader.test_spiders.spider1]
ignore_errors = True

[mypy-tests.test_spiderloader.test_spiders.spider2]
ignore_errors = True

[mypy-tests.test_spiderloader.test_spiders.spider3]
ignore_errors = True

[mypy-tests.test_spidermiddleware_httperror]
ignore_errors = True

[mypy-tests.test_spidermiddleware_output_chain]
ignore_errors = True

[mypy-tests.test_spidermiddleware_referer]
ignore_errors = True

[mypy-tests.test_utils_reqser]
ignore_errors = True

[mypy-tests.test_utils_serialize]
ignore_errors = True

[mypy-tests.test_utils_spider]
ignore_errors = True

[mypy-tests.test_utils_url]
ignore_errors = True
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ passenv =
commands =
py.test --cov=scrapy --cov-report= {posargs:--durations=10 docs scrapy tests}

[testenv:typing]
basepython = python3
deps =
mypy==0.780
commands =
mypy {posargs: scrapy tests}

[testenv:security]
basepython = python3
deps =
Expand Down

0 comments on commit 7babf35

Please sign in to comment.