forked from jupyrdf/ipyforcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
164 lines (149 loc) · 3.53 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
build-backend = "flit_core.buildapi"
requires = [
"flit_core<4,>=3.9",
]
[project]
name = "ipyforcegraph"
version = "0.4.1"
description = "2D and 3D force-directed graph widgets for Jupyter"
readme = "README.md"
authors = [
{name = "ipyforcegraph contributors", email = "jupyrdf@users.noreply.github.com"},
]
requires-python = ">=3.8"
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"ipywidgets<9,>=8.0.4",
"numcodecs",
"pandas",
"traittypes",
]
[project.urls]
"Bug Tracker" = "https://github.com/jupyrdf/ipyforcegraph/issues"
"Changelog" = "https://github.com/jupyrdf/ipyforcegraph/blob/main/CHANGELOG.md"
"Conda Forge" = "https://github.com/conda-forge/ipyforcegraph-feedstock"
"Documentation" = "https://ipyforcegraph.rtfd.io"
"NPM" = "https://www.npmjs.com/package/@jupyrdf/jupyter-forcegraph"
"PyPI" = "https://pypi.org/project/ipyforcegraph"
"Source" = "https://github.com/jupyrdf/ipyforcegraph"
[tool.ruff]
select = [
"E",
"F",
"I",
"PLE",
"W",
]
ignore = ["E501"]
cache-dir = "build/.cache/ruff"
[tool.ruff.isort]
known-first-party = ["ipyforcegraph", "ipyforcegraph.*"]
[tool.pytest.ini_options]
junit_family = "xunit2"
cache_dir = "build/.cache/pytest"
addopts = [
"--pyargs",
"ipyforcegraph",
# for contributors
"--cov-report=term-missing:skip-covered",
"--color=yes",
# for review
"--html=build/reports/pytest.html",
"--self-contained-html",
"--cov-report=html:build/reports/cov_utest/html",
"--cov-context=test",
# coverage
"--cov=ipyforcegraph",
"--no-cov-on-fail",
# for robots
"--junitxml=build/reports/pytest.xunit.xml",
"--json-report",
# misc
"-vv",
"--ff",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning:traittypes",
"ignore:.metadata:DeprecationWarning:ipywidgets",
]
[tool.coverage.run]
data_file = "build/reports/cov_utest/.coverage"
parallel = true
branch = true
[tool.coverage.html]
show_contexts = true
[tool.coverage.paths]
ipyforcegraph = [
"src/ipyforcegraph",
"*/src/ipyforcegraph"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.mypy]
cache_dir = "build/.cache/mypy"
sqlite_cache = true
python_version = "3.8"
# settings
allow_redefinition = true
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
# broken by ipywidgets
# disallow_any_unimported = true
[[tool.mypy.overrides]]
module = [
"importlib.metadata",
"ipywidgets",
"numcodecs",
"numpy",
"pandas",
"traittypes",
"doit.*",
]
ignore_missing_imports = true
[tool.doit]
backend = "sqlite3"
verbosity = 2
par_type = "thread"
default_tasks = ["binder"]
[tool.doit.commands.list]
status = true
subtasks = true
[tool.flit.sdist]
include = ["src/_d"]
exclude = [
".binder/",
".github/",
"atest/",
"docs/",
"dodo.py",
"examples/",
"lite/",
"pages-lite/",
]
[tool.flit.external-data]
directory = "src/_d"
[tool.nbqa.addopts]
ruff = ["--ignore=E402"]