Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (129 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (129 loc) · 3.26 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "gnng"
version = "0.0.1alpha2"
authors = [
{ name = "Bowen Deng", email = "bowen.deng20@gmail.com" },
]
description = "gnn"
readme = "README.md"
requires-python = ">=3.8"
keywords = [
"deep-learning",
"graph-neural-networks",
"graph-convolutional-networks",
"knowledge distillation"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
# "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"numpy",
"scipy",
"ogb",
"lightning>=2.0.0",
"torchmetrics>=1.1.1",
"torch-geometric>=2.5",
"colorlog",
"termcolor",
"wandb==0.16.6",
"numba",
"matplotlib",
"seaborn",
"jsonargparse[all]==4.27.1",
"rootutils",
"tabulate",
"scikit-learn",
]
[project.optional-dependencies]
dev = [
"gnng[full]",
"pre-commit",
"black",
"ruff"
]
full = [
"gnng[cli]",
"wandb",
"tensorboard",
# some addtional
"termcolor",
"wandb",
"tabulate",
"matplotlib",
"seaborn",
"numba",
"omegaconf",
"rootutils"
]
[project.urls]
#documentation="https://gnng.readthedocs.io"
#repository="https://github.com/bwdeng20/gnng.git"
changelog = "https://github.com/bwdeng20/gnng/blob/master/CHANGELOG.md"
[tool.flit.module]
name = "gnng"
[tool.yapf]
based_on_style = "pep8"
split_before_named_assigns = false
blank_line_before_nested_class_or_def = false
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
profile = "black"
skip = [".gitignore", "__init__.py"]
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311"]
[tool.ruff]
line-length = 120
# target-version ="py38" automatically infer from `requires-python`
[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true
[tool.mypy]
files = [
"gnng",
]
[tool.pytest.ini_options]
addopts = [
"--capture=no",
"--color=yes",
"-vv",
]
filterwarnings = [
"ignore:distutils:DeprecationWarning",
# Filter `torch` warnings:
"ignore:The PyTorch API of nested tensors is in prototype stage:UserWarning",
"ignore:scatter_reduce():UserWarning",
"ignore:Sparse CSR tensor support is in beta state:UserWarning",
"ignore:Sparse CSC tensor support is in beta state:UserWarning",
"ignore:torch.distributed._sharded_tensor will be deprecated:DeprecationWarning",
# Filter `captum` warnings:
"ignore:Setting backward hooks on ReLU activations:UserWarning",
"ignore:.*did not already require gradients, required_grads has been set automatically:UserWarning",
# Filter `pytorch_lightning` warnings:
"ignore:GPU available but not used:UserWarning",
]
[tool.coverage.run]
source = ["gnng"]
omit = [] # to fill some files to omit
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pass",
"raise NotImplementedError",
"register_parameter",
"torch.cuda.is_available",
]