-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (68 loc) · 1.68 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
66
67
68
69
70
71
72
73
74
75
76
77
[tool.poetry]
name = "karmabot"
version = "1.0.0"
description = "Slack bot that listens for and performs karma operations"
readme = "README.md"
license = "LICENSE"
authors = ["Eugene <[email protected]>"]
package-mode = true
include = [
"data/config.yml",
"lang/**/*.mo",
"lang/**/*.po",
]
[tool.poetry.dependencies]
python = "^3.10"
apscheduler = "^3.11.0"
pyyaml = "^6.0.0"
sqlalchemy = {extras = ["mypy"], version = "^2.0.36"}
types-pyyaml = "^6.0.12.20240917"
click = "^8.1.7"
pydantic = "^2.10.4"
pydantic-settings = "^2.7.0"
slack-bolt = "^1.22.0"
psycopg2-binary = "^2.9.10"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
ruff = "^0.8.0"
mypy = "^1.13.0"
[tool.ruff]
target-version = "py310"
respect-gitignore = true
force-exclude = true # exclude ignored files if they passed via CLI
fix = true
line-length = 99
indent-width = 4
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"T10", # flake8-debugger
"UP", # pyupgrade
"YTT", # flake-2020
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"B011", # do not flag asserts
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = false
explicit_package_bases = true
namespace_packages = true
show_error_codes = true
warn_unused_ignores = true
check_untyped_defs = true
warn_redundant_casts = true
disable_error_code = "import-untyped"
plugins = ["sqlalchemy.ext.mypy.plugin"]
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
karmabot = "karmabot.app:cli_app"
karmabot-init = "karmabot.app:cli_init"