forked from pmatiello/python-graph
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (61 loc) · 1.25 KB
/
pyproject.toml
File metadata and controls
68 lines (61 loc) · 1.25 KB
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
[project]
name = "python-graph"
version = "2.0.1.dev0"
description = "A library for working with graphs in Python"
authors = [
{name = "Pedro Matiello"}
]
license = {text = "MIT"}
readme = "README.rst"
requires-python = ">=3.10"
dependencies = []
[project.optional-dependencies]
dot = [
"pydot"
]
[tool.poetry]
packages = [
{ include = "pygraph" },
]
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.5"
coverage = "^7.8.2"
ruff = "^0.11.11"
pydot = "^4.0.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
#minversion = "6.0"
addopts = "--doctest-modules --maxfail=1"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS",
]
testpaths = [
"pygraph",
"tests",
]
python_files = [
"test_*",
"unittests-*"
]
[tool.coverage.run]
command_line = "-m pytest --doctest-modules"
source = ["pygraph"]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
exclude_also = [
'def __repr__',
'if self.debug:',
'raise AssertionError',
'raise NotImplementedError',
'if 0:',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
'class .*\bProtocol\):',
'@(abc\.)?abstractmethod',
]