-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (71 loc) · 1.92 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
[build-system]
requires = ["flit_core >=3.7.1,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "mpservice"
authors = [
{name = "Zepu Zhang", email = "[email protected]"},
]
dependencies = [
"asyncstdlib",
"deprecation",
"psutil",
"typing-extensions",
"uvicorn[standard] >=0.30.0,<1.0",
]
requires-python = ">=3.10"
readme = "README.rst"
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ['version', 'description']
[project.urls]
Source = "https://github.com/zpz/mpservice"
[project.optional-dependencies]
doc = [
"sphinx",
"numpydoc",
"pydata-sphinx-theme",
]
test = [
"coverage[toml]",
"Faker",
"httpx",
"pytest",
"pytest-asyncio",
"requests",
"starlette",
"zpz",
]
# "pytest-asyncio < 0.23.0",
[tool.flit.module]
name = "mpservice"
# See https://beta.ruff.rs/docs/rules/
[tool.ruff]
target-version = "py310"
exclude = ["tests/manual", "tests/benchmarks", "tests/experiments", "tests/test_deprecated_imports.py"]
[tool.ruff.lint]
ignore = ["E501", "S101", "S102", "S103", "S104", "S108", "S301", "S311", "S603", "S607", "S608"]
select = ["E", "F", "S", "I001"] # isort
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"util.py" = ["E402", "F401"]
"server_process.py" = ["E402", "F401"]
[tool.ruff.format]
quote-style = "single"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-sv --log-cli-level info -p no:cacheprovider --tb=short --ignore=benchmarks --ignore=tests/experiments --ignore=tests/manual --durations 3"
# About exception hook in pytest:
# https://github.com/pytest-dev/pytest/discussions/9193
[tool.coverage.report]
fail_under = 85
show_missing = true
skip_empty = true
[tool.coverage.run]
source = ["mpservice"]
data_file = "/tmp/.coverage"