/
pyproject.toml
65 lines (61 loc) · 1.42 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
59
60
61
62
63
64
65
[tool.black]
exclude = '''
(
/(
\.git # exclude a few common directories
| \.direnv
| \.github
| \.pytest_cache
| \.venv
| htmlcov
| venv
)/
)
'''
[tool.ruff]
line-length = 88
exclude = [
".direnv",
".venv/",
"venv/",
"fabfile.py",
]
extend-select = [
"A", # flake8-builtins
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"UP", # pyupgrade
"W", # pycodestyle warning
]
extend-ignore = [
"E501"
]
[tool.ruff.isort]
lines-after-imports = 2
[tool.ruff.per-file-ignores]
"gunicorn/conf.py" = ["INP001"]
[tool.pytest.ini_options]
env = [
"DB_PATH=tests/ebmbot.db",
"WORKSPACE_DIR=tests/workspace",
"WRITEABLE_WORKSPACE_DIR=tests/writeable_workspace",
"WRITEABLE_DIR=tests/",
"LOGS_DIR=tests/logs",
"HOST_LOGS_DIR=tests/logs",
"SLACK_LOGS_CHANNEL=logs",
"SLACK_BENNETT_ADMINS_CHANNEL=bennettadmins",
"SLACK_TECH_SUPPORT_CHANNEL=techsupport",
"SLACK_SIGNING_SECRET=secret",
"SLACK_BOT_TOKEN=xoxb-token",
"SLACK_APP_TOKEN=xapp-token",
"SLACK_APP_USERNAME=test_username",
"GITHUB_WEBHOOK_SECRET=github_webhook_secret",
"EBMBOT_WEBHOOK_SECRET=ebmbot_webhook_secret",
"WEBHOOK_ORIGIN=http://localhost:9999",
"GCP_CREDENTIALS_PATH=",
"DATA_TEAM_GITHUB_API_TOKEN=dummy-token"
]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning:pytest_freezegun",
]