mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Migrate configs for isort, mypy, and pytest into pyproject.toml (#10844)
This commit is contained in:
@@ -134,3 +134,63 @@ include = [
|
||||
exclude = [
|
||||
"doc/_build",
|
||||
]
|
||||
|
||||
[tool.isort]
|
||||
line_length = 95
|
||||
|
||||
[tool.mypy]
|
||||
check_untyped_defs = true
|
||||
disallow_incomplete_defs = true
|
||||
follow_imports = "skip"
|
||||
ignore_missing_imports = true
|
||||
no_implicit_optional = true
|
||||
python_version = "3.6"
|
||||
show_column_numbers = true
|
||||
show_error_codes = true
|
||||
show_error_context = true
|
||||
strict_optional = true
|
||||
warn_redundant_casts = true
|
||||
warn_unused_ignores = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"sphinx.application",
|
||||
"sphinx.builders",
|
||||
"sphinx.builders.html",
|
||||
"sphinx.builders.latex",
|
||||
"sphinx.builders.linkcheck",
|
||||
"sphinx.directives.code",
|
||||
"sphinx.domains.*",
|
||||
"sphinx.environment",
|
||||
"sphinx.environment.adapters.toctree",
|
||||
"sphinx.environment.adapters.indexentries",
|
||||
"sphinx.ext.*",
|
||||
"sphinx.pycode.parser",
|
||||
"sphinx.registry",
|
||||
"sphinx.setup_command",
|
||||
"sphinx.testing.util",
|
||||
"sphinx.transforms.i18n",
|
||||
"sphinx.transforms.post_transforms.images",
|
||||
"sphinx.util.cfamily",
|
||||
"sphinx.util.docfields",
|
||||
"sphinx.util.docutils",
|
||||
"sphinx.util.nodes",
|
||||
"sphinx.util.typing",
|
||||
"sphinx.writers.latex",
|
||||
"sphinx.writers.text",
|
||||
"sphinx.writers.xml"
|
||||
]
|
||||
strict_optional = false
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
filterwarnings = [
|
||||
"all",
|
||||
"ignore::DeprecationWarning:docutils.io",
|
||||
"ignore::DeprecationWarning:pyximport.pyximport",
|
||||
"ignore::ImportWarning:importlib._bootstrap",
|
||||
]
|
||||
markers = [
|
||||
"apidoc",
|
||||
"setup_command",
|
||||
]
|
||||
testpaths = ["tests"]
|
||||
|
||||
Reference in New Issue
Block a user