-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
107 lines (93 loc) · 2.11 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
[build-system]
requires=["flit_core >=3.2,<4"]
build-backend="flit_core.buildapi"
[project]
name="contextgnn"
version="0.0.0"
authors=[
{name="XXX Team", email="team@xxx.org"},
]
description="Library for ContextGNN"
readme="README.md"
requires-python=">=3.8"
keywords=[
"deep-learning",
"pytorch",
"graph-neural-networks",
"data-frame",
]
classifiers=[
"License :: OSI Approved :: MIT License",
]
dependencies=[
"numpy",
"torch-geometric",
"pytorch-frame>=0.2.3",
]
[project.optional-dependencies]
test=[
"pytest",
"pytest-cov",
"mypy",
]
dev=[
"pre-commit",
]
full=[
"relbench==1.1.0",
"sentence-transformers",
"optuna",
]
[tool.flit.module]
name="contextgnn"
[tool.ruff] # https://docs.astral.sh/ruff/rules
select = [
"D", # pydocstyle
]
ignore = [
"D100", # TODO: Don't ignore "Missing docstring in public module"
"D101", # TODO: Don't ignore "Missing docstring in public class"
"D102", # TODO: Don't ignore "Missing docstring in public method"
"D103", # TODO: Don't ignore "Missing docstring in public function"
"D105", # Ignore "Missing docstring in magic method"
"D107", # Ignore "Missing docstring in __init__"
"D205", # Ignore "blank line required between summary line and description"
]
src = ["contextgnn"]
line-length = 80
indent-width = 4
target-version = "py38"
# [tool.ruff.per-files-ignores]
[tool.ruff.lint.pydocstyle]
convention = "google"
[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
skip = [".gitignore", "__init__.py"]
[tool.flake8]
ignore = ["F811", "W503", "W504"]
[tool.mypy]
files = ["contextgnn"]
install_types = true
non_interactive = true
ignore_missing_imports = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = [
"--capture=no",
"--color=yes",
"-vv",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pass",
"raise NotImplementedError",
]