-
Notifications
You must be signed in to change notification settings - Fork 53
/
pyproject.toml
140 lines (126 loc) · 3.46 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[tool.poetry]
name = "slack-machine"
version = "0.37.0"
description = "A wonderful, simple, yet powerful and extendable Slack bot framework"
authors = ["Daan Debie <daan@dv.email>"]
license = "MIT"
repository = "https://github.com/DonDebonair/slack-machine"
homepage = "https://github.com/DonDebonair/slack-machine"
documentation = "https://DonDebonair.github.io/slack-machine/"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Communications :: Chat",
"Topic :: Internet",
"Topic :: Office/Business"
]
packages = [
{ include = "machine" },
]
include = ["extra/logo.png", "run_dev.py", "README.md", "CHANGELOG.md", "LICENSE", "AUTHORS"]
[tool.poetry.dependencies]
python = "^3.8"
"backports.zoneinfo" = { version = "^0.2.1", python = "<3.9" }
dill = "^0.3.5.1"
APScheduler = "^3.9.1"
redis = {version = ">=4.3.4,<6.0.0", optional = true}
hiredis = {version = ">=2,<4", optional = true}
slack-sdk = "^3.18.1"
aiohttp = "^3.8.5"
pyee = ">=9.0.4,<13.0.0"
httpx = ">=0.23,<0.28"
aioboto3 = {version = ">=10,<14", optional = true}
tzdata = ">=2022.2,<2025.0"
pydantic = "^2.2.1"
structlog = ">=22.1,<25.0"
aiosqlite = {version = ">=0.18,<0.21", optional = true}
multidict = "^6.0.5"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = ">=7.1.3,<9.0.0"
pytest-mock = "^3.10.0"
tox = "^3.26.0"
tox-gh-actions = "^2.10.0"
coverage = ">=6.5,<8.0"
redis = ">=4.3.4,<6.0.0"
pre-commit = ">=2.20,<4.0"
pyyaml = "^6.0.1"
pytest-cov = ">=4,<6"
typing-extensions = "^4.4.0"
pytest-asyncio = ">=0.19,<0.25"
mock = ">=4.0.3,<6.0.0"
mypy = ">=0.982,<1.14"
types-redis = "^4.3.21"
aioboto3 = ">=10,<14"
types-aiobotocore = {extras = ["essential"], version = "^2.4.0"}
aiosqlite = ">=0.18,<0.21"
ruff = ">=0.4.3,<0.8.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocstrings = {extras = ["python"], version = ">=0.19,<0.27"}
mkdocs-material = ">=8.5.10,<10.0.0"
griffe = ">=0.47.0,<1.5.0"
mkdocstrings-python = "^1.10.3"
[tool.poetry.extras]
redis = ["redis", "hiredis"]
dynamodb = ["aioboto3"]
sqlite = ["aiosqlite"]
[tool.poetry.scripts]
slack-machine = 'machine.bin.run:main'
[tool.ruff]
line-length = 120
[tool.ruff.lint]
exclude = [
".git",
".tox",
".eggs",
"docs",
"__pycache__",
"dist",
"build",
"tests",
]
ignore = ["UP006", "UP007"]
select = [
"E",
"F",
"W",
# isort
"I",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# # flake8-simplify
"SIM",
]
[tool.ruff.lint.isort]
known-first-party = ["machine", "tests"]
[tool.ruff.format]
preview = true
[tool.pytest.ini_options]
mock_use_standalone_module = true
addopts = "--verbose --cov-report term-missing --cov-report xml --junit-xml pytest.xml --cov=machine"
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_redundant_casts = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"