-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
111 lines (99 loc) · 2.5 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "Flask-More"
description = "Modernized Flask API builder with schema validator and OpenAPI"
dynamic = ["version"]
authors = [
{ name = "chaojie", email = "hi@chaojie.fun" },
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
dependencies = [
"flask",
"pydantic[email]"
]
keywords = [
"flask",
"api",
"plugin",
"openapi",
"validator",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Flask"
]
[project.urls]
Homepage = "https://github.com/ischaojie/flask-more"
Documentation = "https://flask-more.chaojie.fun"
Source = "https://github.com/ischaojie/flask-more"
[tool.hatch.version]
path = "flask_more/__init__.py"
[tool.hatch.envs.default]
dependencies = [
"flake8",
"mypy",
"black==23.1.0",
"isort",
"autoflake",
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]>=0.18",
]
[tool.hatch.envs.default.scripts]
clean = ["git clean"]
check = [
"flake8 flask_more tests --max-line-length=90",
"black --check --diff flask_more tests",
"isort --check-only --diff flask_more tests",
"mypy flask_more"
]
lint = [
"autoflake -r flask_more tests",
"isort flask_more tests",
"black flask_more tests",
]
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"pytest-pretty",
"openapi-spec-validator",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
[tool.hatch.envs.test.scripts]
test = [
"pytest tests/ -s --cov=flask_more --cov-config=pyproject.toml --cov-report=term-missing --cov-report=xml --cov-fail-under=99",
]
report = ["coverage report -m"]
[tool.black]
line-length = 90
[tool.isort]
profile = "black"
[tool.autoflake]
in-place = true
remove-all-unused-imports = true
[tool.mypy]
plugins = [
"pydantic.mypy"
]
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
warn_unused_ignores = true
show_error_codes = true