generated from adhtruong/template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
65 lines (58 loc) · 1.22 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
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.2,<4"]
[project]
authors = [
{name = "Andrew Truong"},
]
classifiers = [
"License :: OSI Approved :: MIT License",
]
dependencies = [
"sqlalchemy>=1.4.36",
"typing-extensions>=4.2.0",
]
dynamic = ["version", "description"]
name = "db_model"
readme = "README.md"
requires-python = "~=3.9"
[project.optional-dependencies]
dev = [
"autoflake==1.4",
"black==22.3.0",
"blacken-docs==1.12.1",
"flake8==4.0.1",
"isort==5.10.1",
"mypy==0.971",
"mypy-extensions==0.4.3",
"pre-commit==2.18.1",
"sqlalchemy[mypy]==1.4.36",
"Jinja2==3.1.1",
]
test = [
"pytest == 7.1.2",
"pytest-cov == 3.0.0",
"pydantic == 1.9.0",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
]
[tool.coverage.run]
branch = true
omit = ["tests/fixtures/*"]
source = ["db_model"]
[tool.isort]
profile = "black"
[tool.mypy]
plugins = ["db_model/ext/mypy_plugin.py"]
[tool.pytest.ini_options]
addopts = "-ra -v --durations=5 --cov-report term-missing --cov=db_model"