-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (101 loc) · 3.15 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (101 loc) · 3.15 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "graphviz"
authors = [{ name = "Sebastian Bank", email = "sebastian.bank@uni-leipzig.de" }]
description = "Simple Python interface for Graphviz"
keywords = ["graph", "visualization", "dot", "render"]
readme = "README.rst"
license = "MIT"
license-files = ["LICENSE.txt"]
dynamic = ["version"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Visualization",
]
[project.urls]
Homepage = "https://github.com/xflr6/graphviz"
Documentation = "https://graphviz.readthedocs.io"
Changelog = "https://graphviz.readthedocs.io/en/latest/changelog.html"
"Issue Tracker" = "https://github.com/xflr6/graphviz/issues"
CI = "https://github.com/xflr6/graphviz/actions"
Coverage = "https://codecov.io/gh/xflr6/graphviz"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
platforms = ["any"]
[tool.setuptools.dynamic]
version = { attr = "graphviz.__version__" }
[tool.setuptools.package-data]
graphviz = ["py.typed"]
[dependency-groups]
dev = [ # $ pip install -e . --group dev
"build", "tox", "twine", "wheel",
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typing" },
]
docs = ["Sphinx", "sphinx-autodoc-typehints", "sphinx-rtd-theme"]
lint = ["flake8", "Flake8-pyproject", "pep8-naming"]
test = [
"coverage",
"pytest>=7,<8.1", # https://github.com/pytest-dev/pytest/issues/12123
"pytest-cov",
"pytest-mock>=3",
]
typing = ["mypy"]
[tool.mypy]
packages = ["graphviz"]
# https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
check_untyped_defs = true
disallow_subclassing_any = true
[tool.flake8]
exclude = [".tox", "build", "docs"]
ignore = ["E126", "E128", "W503"]
max-line-length = 100
[tool.pytest.ini_options]
minversion = "7"
testpaths = ["README.rst", "docs", "graphviz", "tests"]
addopts = [
"--doctest-modules",
"--doctest-glob='*.rst'", "--ignore=docs/conf.py",
"--doctest-continue-on-failure",
# pytest summary: all except (E)rror
# - (f)ailed
# - (s)kipped
# - (x/X)failed/passed
# - (p/P)assed (no output)
"-r fsxX",
"--durations=10",
"--cov", "--cov-report=term", "--cov-report=html",
"--strict-config", "--strict-markers",
]
log_cli = true
log_cli_level = "WARNING"
log_file = "test-log.txt"
log_file_level = "DEBUG"
[tool.coverage.run]
source = ["graphviz"]
branch = false
omit = ["*/conftest.py"]
[tool.tox]
requires = ["tox>=4.22"]
env_list = ["3.14", "3.13", "3.12", "3.11", "3.10"]
skip_missing_interpreters = true
[tool.tox.env_run_base]
dependency_groups = ["test"]
commands = [["python", "-X", "dev", "run-tests.py", { replace = "posargs", extend = true }]]