discord.py/pyproject.toml
Rapptz 52e16573f5 Remove unused imports and make exports explicit
This allows Pyright to actually catch these errors, which would be
useful for CI purposes in the future.
2022-04-02 11:38:39 -04:00

51 lines
869 B
TOML

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 125
skip-string-normalization = true
[tool.coverage.run]
omit = [
"discord/__main__.py",
"discord/types/*",
"*/_types.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload"
]
[tool.isort]
profile = "black"
combine_as_imports = true
combine_star = true
line_length = 125
[tool.pyright]
include = [
"discord",
"discord/app_commands",
"discord/types",
"discord/ui",
"discord/ext",
"discord/ext/commands",
"discord/ext/tasks",
]
exclude = [
"**/__pycache__",
"build",
"dist",
"docs",
]
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedImport = "error"
pythonVersion = "3.8"
typeCheckingMode = "basic"
[tool.pytest.ini_options]
asyncio_mode = "strict"