-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (154 loc) · 3.91 KB
/
pyproject.toml
File metadata and controls
170 lines (154 loc) · 3.91 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
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
165
166
167
168
169
170
[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "neo4j-viz"
version = "1.1.0"
description = "A simple graph visualization tool"
readme = "README.md"
authors = [{ name = "Neo4j", email = "team-gds@neo4j.org" }]
license = "GPL-3.0-only"
license-files = [ "LICENSE" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database :: Front-Ends",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development",
"Typing :: Typed",
]
keywords = ["graph", "visualization", "neo4j"]
dependencies = [
"ipython >=7, <10",
"pydantic >=2 , <3",
"pydantic-extra-types >=2, <3",
"enum-tools==0.13.0"
]
requires-python = ">=3.10"
[project.optional-dependencies]
pandas = ["pandas>=2, <3", "pandas-stubs>=2, <3"]
gds = ["graphdatascience>=1, <2"]
neo4j = ["neo4j"]
snowflake = ["snowflake-snowpark-python>=1, <2"]
[dependency-groups]
dev = [
"ruff==0.14.13",
"mypy==1.19.1",
"pytest==8.4.2",
"selenium==4.40.0",
"ipykernel==7.1.0",
"palettable==3.3.3",
"pytest-mock==3.15.1",
"nbconvert==7.16.6",
"streamlit==1.53.0",
"matplotlib>=3.9.4",
]
docs = [
"sphinx==8.1.3",
"enum-tools[sphinx]",
"nbsphinx==0.9.7",
"nbsphinx-link==1.3.1",
]
notebook = [
"ipykernel>=6.29.5",
"pykernel>=0.1.6",
"neo4j>=5.26.0",
"ipywidgets>=8.0.0",
"palettable>=3.3.3",
"matplotlib>=3.9.4",
"snowflake-snowpark-python==1.42.0",
"dotenv"
]
[project.urls]
Homepage = "https://neo4j.com/"
Repository = "https://github.com/neo4j/python-graph-visualization"
Issues = "https://github.com/neo4j/python-graph-visualization/issues"
Documentation = "https://neo4j.com/docs/python-graph-visualization/"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = [
"neo4j_viz*",
] # package names should match these glob patterns (["*"] by default)
namespaces = false # only scan directories with __init__.py files (true by default)
[tool.setuptools.package-data]
neo4j_viz = [
"resources/nvl_entrypoint/base.js",
"resources/nvl_entrypoint/styles.css",
"resources/icons/*.svg",
"py.typed"
]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
markers = [
"requires_neo4j_and_gds: mark a test as a requiring a Neo4j instance with GDS running",
"requires_snowflake: mark a test as a requiring a Snowflake connection"
]
filterwarnings = [
"error",
"ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning"
]
[tool.ruff]
line-length = 120
include = ["*.py", "*.ipynb"]
exclude = [
# default
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
# custom
"venv*",
".venv*",
".tox",
"build",
]
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9", # default pycodestyle rules
"F", # flake8
"I", # isort
]
[tool.mypy]
strict = true
exclude = [
'(^build|^\.?venv)',
'build',
]
plugins = ['pydantic.mypy']
untyped_calls_exclude=["nbconvert"]