mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add new extras_require: lint
This commit is contained in:
11
setup.py
11
setup.py
@@ -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
|
||||||
|
|||||||
7
tox.ini
7
tox.ini
@@ -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/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user