Add new extras_require: lint

This commit is contained in:
Takeshi KOMIYA
2020-01-23 00:42:59 +09:00
parent 204564549c
commit 00a4c13d0b
2 changed files with 11 additions and 7 deletions

View File

@@ -41,15 +41,18 @@ extras_require = {
'docs': [ 'docs': [
'sphinxcontrib-websupport', 'sphinxcontrib-websupport',
], ],
'test': [ 'lint': [
'pytest < 5.3.3',
'pytest-cov',
'html5lib',
'flake8>=3.5.0', 'flake8>=3.5.0',
'flake8-import-order', 'flake8-import-order',
'mypy>=0.761', 'mypy>=0.761',
'docutils-stubs', 'docutils-stubs',
], ],
'test': [
'pytest < 5.3.3',
'pytest-cov',
'html5lib',
'typed_ast', # for py35-37
],
} }
# Provide a "compile_catalog" command that also creates the translated # Provide a "compile_catalog" command that also creates the translated

View File

@@ -27,6 +27,8 @@ commands=
basepython = python3 basepython = python3
description = description =
Run style checks. Run style checks.
extras =
lint
commands = commands =
flake8 flake8
@@ -54,9 +56,8 @@ commands =
basepython = python3 basepython = python3
description = description =
Run type checks. Run type checks.
deps = extras =
mypy lint
docutils-stubs
commands= commands=
mypy sphinx/ mypy sphinx/