-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
102 lines (87 loc) · 3.01 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
[tool.poetry]
name = "scw-serverless"
version = "1.2.0"
description = "Framework for writing serverless APIs in Python, using Scaleway functions and containers."
authors = ["Scaleway Serverless Team <opensource@scaleway.com>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/scaleway/serverless-api-framework-python"
documentation = "https://serverless-api-project.readthedocs.io/en/latest/"
keywords = ["serverless", "scaleway", "functions", "cloud", "faas"]
# Should be one of:
# "Development Status :: 3 - Alpha"
# "Development Status :: 4 - Beta"
# "Development Status :: 5 - Production/Stable"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Internet",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
packages = [{ include = "scw_serverless" }]
include = ["CHANGELOG.md"]
[tool.poetry.scripts]
scw-serverless = "scw_serverless.cli:cli"
[tool.poetry.dependencies]
# TODO: investigate this breaking change (can we lower the gateway Python version ?)
python = ">=3.10,<3.12"
click = "^8.1.3"
scaleway = ">=0.7,<0.15"
scaleway-functions-python = "^0.2.0"
requests = "^2.28.2"
typing-extensions = { version = "^4.4.0", python = "<3.11" }
[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.21,<4.0"
pytest = "^7.2.0"
pytest-xdist = "^3.1.0"
pylint = "^2.15.10"
pylint-per-file-ignores = "^1.1.0"
responses = ">=0.22,<0.24"
scw-gateway = ">=0.4,<0.7"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
myst_parser = "^1.0.0"
sphinx = "^6.1.0"
sphinx_rtd_theme = "^1.2.0"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:.*pkg_resources\\.declare_namespace.*:DeprecationWarning",
"ignore:::pkg_resources",
]
[tool.pylint]
load-plugins = ["pylint_per_file_ignores"]
disable = "missing-module-docstring"
# Commented Black formatted code.
max-line-length = 89
# Short and common names. e is commonly used for exceptions.
good-names = "e,fp,i,s,s3"
# Classes with a single responsibility are fine.
min-public-methods = 1
[tool.pylint-per-file-ignores]
# Import aliases are prefered over unused imports or __all__
"__init__.py" = "useless-import-alias"
"/tests/" = "missing-function-docstring,protected-access"
# Sphinx specific
"/docs/" = "invalid-name,redefined-builtin"
[tool.isort]
profile = "black"
[tool.pyright]
include = ["scw_serverless", "examples"]
exclude = ["**/node_modules", "**/__pycache__", "**/package/**"]
[tool.pydocstyle]
# Compatible with Sphinx
convention = "google"
add_ignore = ["D100", "D107"]
[tool.bandit]
# B603:subprocess_without_shell_equals_true is skipped because of the nature of the wrapper
# B404:blacklist is skipped to import subprocess
skips = ["B101", "B603", "B404"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"