-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (54 loc) · 1.15 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (54 loc) · 1.15 KB
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
[project]
name = "my-saas-skeleton"
version = "0.1.0"
description = "My SaaS application skeleton built with lessweb framework"
readme = "README.md"
requires-python = ">=3.11"
# 开发依赖(测试、linting 等)
[project.optional-dependencies]
dev = [
"flake8",
"mypy",
"coverage",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio",
"pytest-aiohttp",
"types-toml",
"types-PyMySQL",
]
[tool.mypy]
implicit_optional = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"aiomysql.*",
"bullmq.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = "--cov=src --cov-report=term-missing --cov-report=html"
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/venv/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]