-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
86 lines (77 loc) · 2.26 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
[tool.poetry]
name = "slackdoor"
description = "An opinionated and powerful chatbot framework for Slack"
authors = ["Eddy G <eddyg@users.noreply.github.com>"]
license = "MIT"
repository = "https://github.com/eddyg/slackdoor"
packages = [
{include = "door"}
]
version = "0.6.11"
# NOTE: uses the 'poetry_bumpversion' plugin to keep versions in sync
# Use:
# poetry version {patch|minor|major|prepatch|preminor|premajor|prerelease}
# to bump the version and have it be "authoritative" here and in __init__
# To tag:
# git tag $(awk -F'"' '/^version =/{print $2}' pyproject.toml)
# git push -o ci.skip && git push --tags
[tool.poetry.dependencies]
python = "^3.10,<4"
slack-bolt = {version = "^1.15.2,<2", extras = ["async"]}
slack-sdk = "^3.19.2,<4"
aiorun = "^2022"
python-dotenv = "^0"
pytz = "*"
sentry-sdk = "^1,>=1.16"
case-insensitive-dictionary = "*"
[tool.poetry.scripts]
slackdoor = "door.run:main"
[tool.poetry.dev-dependencies]
black = "^23"
ruff = "^0.0.256"
[tool.poetry_bumpversion.file."door/__init__.py"]
[tool.black]
line-length = 132
[tool.ruff]
line-length = 132
# See https://github.com/charliermarsh/ruff#supported-rules
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"F", # pyflakes
"FBT", # flake8-boolean-trap
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PLC", # pylint convention
"PLE", # pylint error
"PLR", # pylint refactor
"PLW", # pylint warnings
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # ruff-specific
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"RET505", # Unnecessary else after return statement
"PLR2004", # Magic value used in comparison
]
extend-exclude = [".vscode", "__pycache__"]
allowed-confusables = ["’"]
[tool.ruff.pylint]
max-args = 6
max-statements = 75
max-branches = 15
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"