diff options
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index cc724ed4..66a52f5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,3 +54,41 @@ include = ["astroid*"] [tool.setuptools.dynamic] version = {attr = "astroid.__pkginfo__.__version__"} + +[tool.aliases] +test = "pytest" + +[tool.pytest.ini_options] +addopts = '-m "not acceptance"' +python_files = ["*test_*.py"] +testpaths = ["tests"] + +[tool.isort] +include_trailing_comma = true +known_first_party = ["astroid"] +known_third_party = ["attr", "nose", "numpy", "pytest", "six", "sphinx"] +line_length = 88 +multi_line_output = 3 +skip_glob = ["tests/testdata"] + +[tool.mypy] +enable_error_code = "ignore-without-code" +no_implicit_optional = true +scripts_are_modules = true +show_error_codes = true +warn_redundant_casts = true + +[[tool.mypy.overrides]] +# Importlib typeshed stubs do not include the private functions we use +module = [ + "_io.*", + "gi.*", + "importlib.*", + "lazy_object_proxy.*", + "nose.*", + "numpy.*", + "pytest", + "setuptools", + "wrapt.*", +] +ignore_missing_imports = true |