-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (63 loc) · 1.46 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
[project]
name = "metametric"
version = "0.2.1"
description = "A Unified View of Evaluation Metrics for Structured Prediction"
authors = [
{name = "Tongfei Chen", email = "tongfei@pm.me"},
{name = "Yunmo Chen", email = "chanwanmok@gmail.com"},
{name = "Will Gantt", email = "wgantt.iv@gmail.com"}
]
readme = "README.md"
homepage = "https://omnuy.me/metametric"
repository = "https://github.com/wanmok/metametric"
requires-python = ">=3.9"
dependencies = [
"numpy",
"scipy"
]
[dependency-groups]
dev = [
"griffe>=1.5.1",
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.42",
"pyright>=1.1.386",
"pytest>=8.3.3",
"ruff>=0.7.1",
"mkdocstrings[python]>=0.26.2",
"networkx>=3.2.1",
"setuptools>=75.2.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"src",
]
[tool.ruff]
line-length = 120
src = ["src", "tests"]
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
]
lint.ignore = [
"D102", # Missing docstring in public method
"D107", # Missing docstring in `__init__`
]
lint.fixable = ["ALL"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D103", "F841"]
[tool.black]
line-length = 119
[tool.pyright]
include = ["src", "tests"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]