didier/pyproject.toml

59 lines
1.1 KiB
TOML
Raw Normal View History

[tool.black]
line-length = 120
2022-07-01 14:25:15 +02:00
[tool.coverage.run]
concurrency = [
"greenlet"
]
source = [
"didier",
"database"
]
omit = [
"./tests/*",
"./database/migrations.py",
"./didier/cogs/*",
"./didier/didier.py",
2022-07-19 21:33:18 +02:00
"./didier/data/constants.py",
"./didier/data/embeds/*",
"./didier/data/flags/*",
2022-09-03 01:26:32 +02:00
"./didier/menus/*",
"./didier/utils/discord/colours.py",
2022-07-24 17:09:42 +02:00
"./didier/utils/discord/constants.py",
"./didier/utils/discord/flags/*",
2022-07-30 18:27:58 +02:00
"./didier/views/modals/*"
2022-07-01 14:25:15 +02:00
]
2022-07-11 22:23:38 +02:00
[tool.isort]
profile = "black"
[tool.mypy]
2023-07-08 01:23:47 +02:00
check_untyped_defs = true
2022-07-19 21:33:18 +02:00
files = [
"database/**/*.py",
"didier/**/*.py",
"main.py"
]
plugins = [
"pydantic.mypy",
]
2022-06-17 01:51:06 +02:00
[[tool.mypy.overrides]]
module = ["discord.*", "feedparser.*", "ics.*", "markdownify.*"]
2022-06-17 01:51:06 +02:00
ignore_missing_imports = true
[tool.pytest.ini_options]
2022-06-17 00:43:55 +02:00
asyncio_mode = "auto"
env = [
2022-07-27 22:02:59 +02:00
"TESTING = 1",
2022-07-25 19:07:57 +02:00
"POSTGRES_DB = didier_pytest",
"POSTGRES_USER = pytest",
"POSTGRES_PASS = pytest",
"POSTGRES_HOST = localhost",
"POSTGRES_PORT = 5433",
2022-09-18 17:29:24 +02:00
"DISCORD_TOKEN = token",
"DISCORD_MAIN_GUILD = 123456789101112131415"
2022-06-17 01:02:36 +02:00
]
2022-07-30 16:14:32 +02:00
markers = [
"postgres: tests that use PostgreSQL"
]