-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
89 lines (76 loc) · 2.24 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "zeldarose"
version = "0.11.0"
description = "Train transformer-based models"
license = { text = "MIT" }
authors = [{ name = "Loïc Grobol", email = "[email protected]" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Environment :: Console",
]
keywords = ["nlp", "transformers", "language-model"]
requires-python = ">=3.8"
dependencies = [
"click >= 8.0.4, < 9.0.0",
"datasets >= 2.18, < 2.20",
"filelock",
"jsonlines",
"lightning >= 2.0.0, < 2.3.0",
"loguru",
"pydantic",
"pytorch-lightning >= 2.0.0, < 2.3.0",
"rich",
"sacrebleu",
"sacremoses",
"sentencepiece",
"system_info",
"tensorboardx",
"torchmetrics >= 0.9, < 2.0",
"tokenizers >= 0.10, < 0.20",
"tomli",
"torch >= 2.0, < 2.4",
"transformers >= 4.19.0, < 4.41.0, != 4.23.0, != 4.23.1",
]
[project.optional-dependencies]
lint = [
"mypy",
"ruff",
]
tests = ["pytest", "pytest-console-scripts"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.setuptools]
packages = ["zeldarose", "zeldarose.tasks", "zeldarose.datasets"]
[project.scripts]
zeldarose = "zeldarose.main:cli"
zeldarose-tokenizer = "zeldarose.train_tokenizer:main"
zeldarose-transformer = "zeldarose.train_transformer:main"
[project.urls]
"Bug Tracker" = "https://github.com/loicgrobol/zeldarose/issues"
"Changes" = "https://github.com/loicgrobol/zeldarose/blob/main/CHANGELOG.md"
"Documentation" = "https://zeldarose.readthedocs.io"
"Source Code" = "https://github.com/loicgrobol/zeldarose"
[tool.ruff]
line-length = 100
lint.select = ["A", "B", "C90", "E", "F", "N", "NPY", "PT", "PTH", "PYI", "S", "W"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # asserts allowed in tests
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant
]
[tool.mypy]
check_untyped_defs = true
warn_unreachable = true
plugins = ["pydantic.mypy"]
[tool.black]
line-length = 100
[tool.isort]
profile = "black"