-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
178 lines (159 loc) · 4.18 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[build-system]
requires = [
"setuptools>=61.0.0",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "nx-arangodb"
dynamic = ["version"]
description = "ArangoDB backend for NetworkX"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "ArangoDB" },
]
license = { text = "Apache 2.0" }
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"networkx>=3.0,<=3.4",
"phenolrs~=0.5",
"python-arango~=8.1",
"adbnx-adapter~=5.0.5"
]
[project.optional-dependencies]
dev = [
"packaging>=21",
"pandas",
"pytest",
"pytest-benchmark",
"pytest-cov",
"pytest-mpl",
"pytest-xdist",
"scipy",
"black",
"flake8",
"Flake8-pyproject",
"isort",
"mypy",
"pandas",
"sphinx",
"sphinx_rtd_theme",
]
llm = [
"langchain~=0.2.14",
"langchain-openai~=0.1.22",
"langchain-community~=0.2.12"
]
[project.urls]
Homepage = "https://github.com/arangodb/nx-arangodb"
# "plugin" used in nx version < 3.2
[project.entry-points."networkx.plugins"]
arangodb = "nx_arangodb.interface:backend_interface"
# "backend" used in nx version >= 3.2
[project.entry-points."networkx.backends"]
arangodb = "nx_arangodb.interface:backend_interface"
[project.entry-points."networkx.plugin_info"]
arangodb = "_nx_arangodb:get_info"
[project.entry-points."networkx.backend_info"]
arangodb = "_nx_arangodb:get_info"
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools.dynamic]
version = {file = "_nx_arangodb/VERSION"}
[tool.setuptools.packages.find]
include = [
"nx_arangodb*",
"nx_arangodb.*",
"_nx_arangodb*",
"_nx_arangodb.*",
]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311"]
[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
float_to_top = true
default_section = "THIRDPARTY"
known_first_party = "nx_arangodb"
line_length = 88
extend_skip_glob = [
"nx_arangodb/__init__.py",
"nx_arangodb/classes/__init__.py",
]
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503", "E251", "F401", "F403"]
exclude = [".git", ".idea", ".*_cache", "dist", "venv"]
[tool.mypy]
strict = true
ignore_missing_imports = true
disallow_untyped_defs = false
disallow_untyped_calls = false
implicit_reexport = true
scripts_are_modules = true
follow_imports = "skip"
disallow_subclassing_any = false
disallow_untyped_decorators = false
exclude = ["venv", "build", "vendor/integration_api", "vendor/protodeps"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = "nx_arangodb/tests"
xfail_strict = true
markers = [
"slow: Skipped unless --runslow passed",
]
log_cli_level = "info"
filterwarnings = [
# See: https://docs.python.org/3/library/warnings.html#describing-warning-filters
# and: https://docs.pytest.org/en/7.2.x/how-to/capture-warnings.html#controlling-warnings
# "error",
]
python_files = [
"bench_*.py",
"test_*.py",
]
python_functions = [
"bench_*",
"test_*",
]
addopts = [
"-s",
"-vv",
"--color=yes",
"--code-highlight=yes",
"--strict-config", # Force error if config is mispelled
"--strict-markers", # Force error if marker is mispelled (must be defined in config)
# "-ra", # Print summary of all fails/errors
# "--benchmark-warmup=off",
# "--benchmark-max-time=0",
# "--benchmark-min-rounds=1",
# "--benchmark-columns=min,median,max",
]
[tool.coverage.run]
branch = true
source = ["nx_arangodb"]
omit = []
[tool.coverage.report]
ignore_errors = false
precision = 1
fail_under = 0
skip_covered = false # Nice to see fully covered files when running `run_nx_tests.sh`
skip_empty = true
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]