2022-06-09 01:44:53 +02:00
|
|
|
[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-07-15 23:06:40 +02:00
|
|
|
"./didier/utils/discord/colours.py",
|
|
|
|
"./didier/utils/discord/constants.py"
|
2022-07-01 14:25:15 +02:00
|
|
|
]
|
|
|
|
|
2022-07-11 22:23:38 +02:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
2022-06-09 01:44:53 +02:00
|
|
|
[tool.mypy]
|
2022-07-19 21:33:18 +02:00
|
|
|
files = [
|
|
|
|
"database/**/*.py",
|
|
|
|
"didier/**/*.py",
|
|
|
|
"main.py"
|
|
|
|
]
|
2022-06-09 01:44:53 +02:00
|
|
|
plugins = [
|
2022-07-13 22:54:16 +02:00
|
|
|
"pydantic.mypy",
|
2022-06-09 01:44:53 +02:00
|
|
|
"sqlalchemy.ext.mypy.plugin"
|
|
|
|
]
|
2022-06-17 01:51:06 +02:00
|
|
|
[[tool.mypy.overrides]]
|
2022-06-19 00:23:25 +02:00
|
|
|
module = ["discord.*", "feedparser.*", "markdownify.*"]
|
2022-06-17 01:51:06 +02:00
|
|
|
ignore_missing_imports = true
|
2022-06-09 01:44:53 +02:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
2022-06-17 00:43:55 +02:00
|
|
|
asyncio_mode = "auto"
|
|
|
|
env = [
|
2022-06-29 00:14:44 +02:00
|
|
|
"DB_NAME = didier_pytest",
|
|
|
|
"DB_USERNAME = pytest",
|
|
|
|
"DB_PASSWORD = pytest",
|
2022-06-17 00:54:00 +02:00
|
|
|
"DB_HOST = localhost",
|
2022-06-29 00:14:44 +02:00
|
|
|
"DB_PORT = 5433",
|
2022-07-16 00:19:05 +02:00
|
|
|
"DISCORD_TOKEN = token"
|
2022-06-17 01:02:36 +02:00
|
|
|
]
|