-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
58 lines (54 loc) · 1.14 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tool.black]
line-length = 120
[tool.coverage.run]
concurrency = [
"greenlet"
]
source = [
"didier",
"database"
]
omit = [
"./tests/*",
"./database/migrations.py",
"./didier/cogs/*",
"./didier/didier.py",
"./didier/data/constants.py",
"./didier/data/embeds/*",
"./didier/data/flags/*",
"./didier/menus/*",
"./didier/utils/discord/colours.py",
"./didier/utils/discord/constants.py",
"./didier/utils/discord/flags/*",
"./didier/views/modals/*"
]
[tool.isort]
profile = "black"
[tool.mypy]
check_untyped_defs = true
files = [
"database/**/*.py",
"didier/**/*.py",
"main.py"
]
plugins = [
"pydantic.mypy",
]
[[tool.mypy.overrides]]
module = ["discord.*", "feedparser.*", "ics.*", "markdownify.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
env = [
"TESTING = 1",
"POSTGRES_DB = didier_pytest",
"POSTGRES_USER = pytest",
"POSTGRES_PASS = pytest",
"POSTGRES_HOST = localhost",
"POSTGRES_PORT = 5433",
"DISCORD_TOKEN = token",
"DISCORD_MAIN_GUILD = 123456789101112131415"
]
markers = [
"postgres: tests that use PostgreSQL"
]