-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
93 lines (82 loc) · 3.13 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
[tool.poetry]
name = "cmem-plugin-mattermost"
version = "2.0.0.post4.dev0+cf17da4.dirty"
license = "Apache-2.0"
description = "Send messages to Mattermost channels and users."
authors = ["eccenca GmbH <[email protected]>"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
]
readme = "README-public.md"
keywords = [
"eccenca Corporate Memory", "plugin", "mattermost"
]
homepage = "https://github.com/eccenca/cmem-plugin-mattermost"
[tool.poetry.dependencies]
# if you need to change python version here, change it also in .python-version
python = "^3.11"
responses = "^0.23.1"
[tool.poetry.dependencies.cmem-plugin-base]
version = "^4.3.0"
allow-prereleases = false
[tool.poetry.group.dev.dependencies]
genbadge = {extras = ["coverage"], version = "^1.1.1"}
mypy = "^1.2.0"
pip = ">=23.3" # Avoid safety issue 62044 for pip less than 23.3
pytest = "^7.3.1"
pytest-cov = "^4.1.0"
pytest-dotenv = "^0.5.2"
pytest-memray = { version = "^1.5.0", markers = "platform_system != 'Windows'" }
ruff = "^0.1.5"
safety = "^1.10.3"
types-requests = "^2.28.11.8"
pytest-docker-compose = "^3.2.1"
# Downgrade docker to resolve reported in
# https://github.com/docker/docker-py/issues/3194#issuecomment-1857650020
docker = "==6.1.3"
# Downgrade pyyaml to resolve reported in
# https://github.com/yaml/pyyaml/issues/724
pyyaml = "==5.3.1"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
dirty = true
bump = true
[tool.mypy]
warn_return_any = true
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--docker-compose=./docker/docker-compose.yml"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.format]
line-ending = "lf" # Use `\n` line endings for all files
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for self in method
"ANN204", # Missing return type annotation for special method `__init__`
"COM812", # missing-trailing-comma
"D107", # Missing docstring in __init__
"D203", # [*] 1 blank line required before class docstring
"D211", # No blank lines allowed before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D415", # First line should end with a period, question mark, or exclamation point
"EM", # Exception texts - https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
"FBT", # The Boolean Trap - https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"FIX002", # Allow to add TODO notes in the code
"G004", # Logging statement uses f-string
"ISC001", # single-line-implicit-string-concatenation
"PD", # opinionated linting for pandas code
"S101", # use of assert detected
"TRY003", # Avoid specifying long messages outside the exception class
]