forked from apiflask/apiflask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
120 lines (106 loc) · 3.25 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
[project]
name = "APIFlask"
description = "A lightweight web API framework based on Flask and marshmallow-code projects."
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Grey Li", email = "[email protected]" }]
version = "2.3.1"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"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",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"flask >= 2",
"flask-marshmallow >= 1.0.0",
"marshmallow >= 3.20",
"webargs >= 8.3",
"flask-httpauth >= 4",
"apispec >= 6",
]
[project.urls]
Documentation = "https://apiflask.com/docs"
Changes = "https://apiflask.com/changelog"
"Source Code" = "https://github.com/apiflask/apiflask"
"Issue Tracker" = "https://github.com/apiflask/apiflask/issues"
Donate = "https://opencollective.com/apiflask"
[project.optional-dependencies]
dotenv = ["python-dotenv"]
async = ["asgiref>=3.2"]
yaml = ["pyyaml"]
[project.entry-points."console_scripts"]
apiflask = "flask.cli:main"
[project.entry-points."flask.commands"]
spec = "apiflask.commands:spec_command"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.mypy]
files = ["src/apiflask"]
allow_redefinition = true
warn_redundant_casts = true
warn_unused_configs = true
no_implicit_optional = true
local_partial_types = true
strict_equality = true
warn_return_any = true
warn_unreachable = true
disallow_untyped_calls = true
[[tool.mypy.overrides]]
module = ["flask_marshmallow.*", "apispec.*", "flask_httpauth.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests", "examples"]
filterwarnings = ["ignore::UserWarning"]
addopts = ["--cov=apiflask", "--cov-branch", "--cov-report=term-missing", "--cov-report=xml"]
[tool.coverage.run]
omit = ["src/apiflask/_decorators.py", "src/apiflask/views.py"]
[tool.coverage.paths]
source = ["src"]
[tool.ruff]
indent-width = 4
line-length = 100
exclude = [
".*",
"*.txt",
"*.md",
"__pycache__",
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint]
# B = bugbear
# E = pycodestyle errors
# F = flake8 pyflakes
# W = pycodestyle warnings
# B9 = bugbear opinions
# Q0 = quotes
extend-select = ["B", "E", "F", "W", "B9", "Q0"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "double"
docstring-quotes = "double"
avoid-escape = true
[tool.ruff.lint.per-file-ignores]
# modules export names
"src/apiflask/validators.py" = ["F401"]
"src/apiflask/views.py" = ["F401"]
"src/apiflask/__init__.py" = ["F401"]
"src/apiflask/fields.py" = ["F401"]
# HTML templates ignore E501 line too long
"src/apiflask/ui_templates.py" = ["E501"]
"tests/*" = ["B018"]