-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (77 loc) · 1.76 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.black]
line-length = 120
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version = "0.2.1"
version_files = ["pyproject.toml:version", "src/vistral/__version__.py"]
[tool.coverage.report]
exclude_lines = [
"def __repr__",
"def __str__",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"pass",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError"
]
[tool.coverage.run]
branch = true
omit = []
source = ["src/"]
[tool.importlinter]
include_external_packages = true
root_package = "vistral"
[tool.isort]
known_vistral = "vistral"
line_length = 120
profile = "black"
sections = "FUTURE,STDLIB,THIRDPARTY,VISTRAL,FIRSTPARTY,LOCALFOLDER"
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
exclude = [
"(^|/)tests/"
]
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
[tool.poetry]
authors = ["Łukasz Wolak"]
description = ""
exclude = ["**/conftest.py", "**/tests/**/*"]
name = "vistral"
packages = [{from = "src", include = "vistral"}]
readme = "README.md"
version = "0.2.1"
[tool.poetry.dependencies]
python = "^3.9"
lagom = {optional = true, version = "^2.4.1"}
[tool.poetry.extras]
lagom = ["lagom"]
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
commitizen = "^3.6.0"
import-linter = "^1.11.1"
isort = "^5.12.0"
mypy = "^1.5.1"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
pyupgrade = "^3.10.1"
ruff = ">=0.0.286, <0.1.0"
toml-sort = "^0.23.1"
yamllint = "^1.32.0"
[tool.ruff]
line-length = 120
src = ["src"]
[tool.tomlsort]
all = true
in_place = true
sort_first = ["tool.poetry.dependencies.python"]