This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
generated from zmievsa/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
75 lines (63 loc) · 1.69 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
[tool.poetry]
name = "pydantic-duality"
version = "2.0.2"
description = "Automatically generate two versions of your pydantic models: one with Extra.forbid and one with Extra.ignore"
repository = "https://github.com/zmievsa/pydantic-duality"
readme = "README.md"
authors = ["Stanislav Zmiev <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.9"
typing-extensions = ">=4.8.0"
pydantic = "^2.0.0"
cached-classproperty = ">=0.1.0"
[tool.poetry.group.dev.dependencies]
pyupgrade = "*"
black = "*"
autoflake = "*"
pytest = ">=7.2.1"
pytest-cov = ">=4.0.0"
isort = "*"
pdbpp = "^0.10.3"
[tool.coverage.run]
data_file = "coverage/coverage"
parallel = true
branch = true
[tool.coverage.report]
fail_under = 90
skip_covered = true
skip_empty = true
omit = ["tests/*"]
# Taken from https://coverage.readthedocs.io/en/7.1.0/excluding.html#advanced-exclusion
exclude_lines = [
"pragma: no cover",
"assert_never\\(",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if False:",
"if __name__ == .__main__.:",
# Impossible to cover
# It is impossible to cover "if TYPE_CHECKING" statements because they never actually run
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
"@(typing\\.)?overload",
"__rich_repr__",
"__repr__",
]
[tool.isort]
profile = "black"
multi_line_output = 3
skip_glob = ['.venv/*', "_compat/*"]
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.bandit]
exclude_dirs = ["/venv", "/tests", "/_compat"]
skips = ["B104"]
[tool.deptry]
extend_exclude = ["settings/config.py"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"