-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (50 loc) · 1.12 KB
/
pyproject.toml
File metadata and controls
55 lines (50 loc) · 1.12 KB
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
[project]
name = "dict-trans-tokenizer"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [{ name = "Haruki Sakajo", email = "sakajoharuki+python@gmail.com" }]
requires-python = ">=3.12"
dependencies = [
"protobuf>=6.31.0",
"pydantic>=2.10.6",
"tokenizers>=0.21.0",
"trans-tokenizers>=0.1.4",
"transformers>=4.49.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"beartype>=0.20.0",
"debugpy>=1.8.13",
"lefthook>=1.11.3",
"pytest>=8.3.5",
"ruff>=0.9.10",
]
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle (error)
"F", # pyflakes
"B", # bugbear
"B9",
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"I", # isort
"UP", # pyupgrade
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PYI", # flake8-pyi
"RUF",
]
ignore = [
# only relevant if you run a script with `python -0`,
# which seems unlikely for any of the scripts in this repo
"B011",
# Leave it to the formatter to split long lines and
# the judgement of all of us.
"E501",
]