/
pyproject.toml
91 lines (77 loc) · 1.86 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
[project]
name = "restcraft"
dynamic = ["version"]
description = "A minimalist Python WSGI framework for building RESTful APIs."
authors = [
{name = "Lucas Santana", email = "lsfratel@gmail.com"},
]
dependencies = []
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
urls = { source = "https://github.com/lsfratel/restcraft" }
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Programming Language :: Python :: 3",
]
keywords = [
"wsgi",
"framework",
"rest",
"api",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "file"
path = "src/restcraft/__init__.py"
[tool.pdm.scripts]
dev = "gunicorn --reload --threads 2 tests.test_app.wsgi"
test = "python -m coverage run -m unittest"
coverage = "python -m coverage"
tc = { composite = ["test", "coverage html"] }
[tool.pdm.dev-dependencies]
lint = ["ruff"]
test = ["gunicorn", "webtest", "coverage", "snakeviz"]
[tool.ruff]
line-length = 79
select = [
"B",
"C4",
"E",
"F",
"PGH",
"RUF",
"W",
"YTT",
]
[tool.ruff.lint]
ignore = [
"B006",
"B010",
"B009",
"B019",
"B018",
"B019",
"RUF012"
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = 79