-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (71 loc) · 1.43 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
[project]
name = "xlstm-lm"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "Mizuki", email = "mbaba@kanolab.net" }
]
dependencies = [
"xlstm>=1.0.3",
"torch>=2.3.1",
"transformers>=4.41.2",
"omegaconf>=2.3.0",
"datasets>=2.20.0",
"tqdm>=4.66.4",
"dacite>=1.8.1",
"setuptools>=70.1.0",
"zstandard>=0.22.0",
"ninja>=1.11.1.1",
"wandb>=0.17.5",
"loguru>=0.7.2",
"huggingface-hub>=0.27.0",
]
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"mypy>=1.13.0",
"ruff>=0.7.1",
"pytest>=8.3.3",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/"]
[tool.mypy]
ignore_missing_imports = true
## https://gihyo.jp/article/2023/03/monthly-python-2303
## 略称一覧: https://pypi.org/project/ruff/0.0.242/#supported-rule
[tool.ruff]
line-length = 120
lint.select = ["ALL"]
lint.ignore = [
"D",
]
# ファイル毎に無効とする設定
# https://docs.astral.sh/ruff/settings/#lint_per-file-ignores
[tool.ruff.lint.per-file-ignores]
"*.py" = [
"N812",
"N817",
"S101",
"G004",
"TD002",
"FA100",
"FA102",
"ANN101",
"COM812",
"ISC001",
"ERA001",
"FIX002",
"INP001",
"TRY002",
"TRY401",
"RET505",
"PLR5501",
"EXE002"
]