chg: Add sphinx-autodoc-typehints

pull/347/head
Raphaël Vinot 2019-02-07 14:57:54 +01:00
parent 8bed0a8e55
commit f560153f20
3 changed files with 20 additions and 13 deletions

View File

@ -2,6 +2,11 @@ version: 2
python: python:
version: 3.6 version: 3.6
install:
- method: pip
path: .
extra_requirements:
- docs
build: build:
image: latest image: latest

View File

@ -30,6 +30,7 @@ from recommonmark.parser import CommonMarkParser
# ones. # ones.
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx_autodoc_typehints'
'sphinx.ext.doctest', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx.ext.todo', 'sphinx.ext.todo',
@ -255,21 +256,21 @@ htmlhelp_basename = 'PyMISPdoc'
# -- Options for LaTeX output --------------------------------------------- # -- Options for LaTeX output ---------------------------------------------
latex_elements = { latex_elements = {
# The paper size ('letterpaper' or 'a4paper'). # The paper size ('letterpaper' or 'a4paper').
# #
# 'papersize': 'letterpaper', # 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt'). # The font size ('10pt', '11pt' or '12pt').
# #
# 'pointsize': '10pt', # 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
# #
# 'preamble': '', # 'preamble': '',
# Latex figure (float) alignment # Latex figure (float) alignment
# #
# 'figure_align': 'htbp', # 'figure_align': 'htbp',
} }
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples

View File

@ -45,7 +45,8 @@ setup(
extras_require={'fileobjects': ['lief>=0.8', 'python-magic'], extras_require={'fileobjects': ['lief>=0.8', 'python-magic'],
'neo': ['py2neo'], 'neo': ['py2neo'],
'openioc': ['beautifulsoup4'], 'openioc': ['beautifulsoup4'],
'virustotal': ['validators']}, 'virustotal': ['validators'],
'docs': ['sphinx-autodoc-typehints']},
tests_require=[ tests_require=[
'jsonschema', 'jsonschema',
'python-magic', 'python-magic',