-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
63 lines (54 loc) · 1.56 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
[tool.poetry]
name = "template-python-project"
version = "0.1.0"
description = "Template python project using poetry"
authors = ["Mayank Pathak <[email protected]>"]
readme = "README.md"
packages = [{include = "template_python_project", from = "src"}]
[tool.poetry.dependencies]
python = "^3.12"
[tool.poetry.group.dev.dependencies]
ruff = "0.8.2"
mypy = {extras = ["reports"], version = "1.13.0"}
pytest = "8.3.4"
pytest-cov = "6.0.0"
pytest-mock = "3.14.0"
pytest-asyncio = "0.24.0"
[tool.ruff]
include = ["*.py"]
line-length = 120
output-format = "grouped"
respect-gitignore = true
src = ["src"]
[tool.ruff.format]
docstring-code-format = true
line-ending = "native"
quote-style = "double"
skip-magic-trailing-comma = true
[tool.mypy]
files = "src/**/*.py"
disallow_any_unimported = true
disallow_untyped_calls = true
disallow_untyped_defs = true
allow_untyped_globals = false
allow_redefinition = false
show_error_context = true
pretty = true
color_output = true
error_summary = true
html_report = "./reports/mypy/"
[tool.coverage.run]
branch = true
[tool.coverage.report]
fail_under = 0
precision = 2
[tool.pytest.ini_options]
addopts = "--cov-config pyproject.toml --cov src/template_python_project --cov-report html:reports/pytest --cov-report xml:reports/coverage.xml --cov-report term-missing"
console_output_style = "progress"
required_plugins = "pytest-cov pytest-mock pytest-asyncio"
tmp_path_retention_policy = "none"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"