-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (70 loc) · 1.5 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
[project]
name = "transformer"
version = "0.1.0"
description = "Pytorch implementation of a Transformer"
authors = [{ name = "yngtdd", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"datasets==2.14.6",
"lightning==2.1.0",
"nemo-toolkit==1.21.0",
"tokenizers==0.14.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/transformer"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
[tool.hatch.envs.dev]
dependencies = [
"ipython",
"jupyterlab"
]
[tool.hatch.envs.dev.scripts]
lab = "jupyter lab --notebook-dir ./examples/notebooks"
[tool.hatch.envs.style]
detached = true
dependencies = [
"black>=23.7.0",
"flake8",
"isort",
]
[tool.hatch.envs.style.scripts]
check = [
"flake8 .",
"black --check --diff .",
"isort --check-only --diff .",
]
fmt = [
"isort .",
"black .",
"check",
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs>=1.5.2",
"mkdocstrings-python>=1.6.2",
"mkdocs-material>=9.2.8",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict"
serve = "mkdocs serve --dev-addr localhost:8000"