-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
98 lines (87 loc) · 2.27 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
[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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Environment :: Console",
]
keywords = ["nlp", "transformers", "language-model"]
requires-python = ">=3.8"
dependencies = [
"click >= 8.0.4, < 9.0",
"datasets >= 3.0, < 3.3",
"filelock",
"jsonlines",
"lightning >= 2.0, < 2.6",
"loguru",
"pydantic",
"pytorch-lightning >= 2.0, < 2.6",
"rich",
"sacrebleu",
"sacremoses",
"system_info",
"tensorboardx",
"torchmetrics >= 1.0, < 2.0",
"tokenizers >= 0.10, < 0.22",
"tomli",
"torch >= 2.0, < 2.7",
"transformers >= 4.19, < 5.0, != 4.23, != 4.41, != 4.42, != 4.43",
]
[project.optional-dependencies]
lint = ["mypy", "ruff"]
tests = [
"pytest",
"pytest-console-scripts",
"pytest-github-actions-annotate-failures",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.setuptools]
packages = ["zeldarose", "zeldarose.tasks", "zeldarose.datasets"]
[project.scripts]
zeldarose = "zeldarose.main:cli"
[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.pytest.ini_options]
script_launch_mode = "subprocess"
tmp_path_retention_policy = "failed"
tmp_path_retention_count = 1