-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
75 lines (62 loc) · 1.43 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 = "minineedle"
version = "3.1.5"
description = "Needleman-Wunsch and Smith-Waterman algorithms in python for any iterable objects."
authors = ["S. Castillo-Lara <sergiocastillo@ub.edu>"]
license = "GPL3"
readme = "README.md"
homepage = "https://github.com/scastlara/minineedle"
repository = "https://github.com/scastlara/minineedle"
[tool.poetry.dependencies]
python = ">=3.9"
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"
black = "*"
mypy = "*"
ruff = "*"
[tool.black]
line-length = 120
target_version = ["py311"]
[tool.ruff]
target-version = "py311"
line-length = 120
select = [
"C9", # mccabe
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"B", # bugbear
"I", # isort
"C4", # comprehensions
"SIM", # simplify
"N", # pep8-naming
]
ignore = [
"E501", # line length (black handles it)
]
src = ["minineedle", "tests"]
[tool.pytest.ini_options]
addopts = """
-s
--cov
--cov-report term-missing
--cov-report=xml:./tests/coverage.xml
--junitxml=./tests/junit.xml
"""
[tool.coverage.run]
omit = [
"tests/*",
]
[tool.coverage.report]
fail_under = 90
exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]
[tool.mypy]
strict=true
[tool.commitizen]
version = "3.1.5"
version_files = ["pyproject.toml:version"]
tag_format = "v$version"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"