-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (68 loc) · 1.94 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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "bleuscore"
requires-python = ">=3.8"
authors = [
{name = 'Mathew Shen', email = '[email protected]'},
]
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = ["NLP", "Tokenizer", "BLEU", "DeepLearning"]
dynamic = [
"version",
"description",
"license",
"readme",]
dependencies = []
[project.urls]
Homepage = 'https://github.com/shenxiangzhuang/bleuscore'
Source = 'https://github.com/shenxiangzhuang/bleuscore'
[project.optional-dependencies]
test = ["pytest", "pytest-sugar", "hypothesis", "evaluate", "sacrebleu"]
lint = ["black", "ruff~=0.3.7"]
#docs = []
#dev = []
[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "python"
module-name = "bleuscore.bleuscore"
#bindings = 'pyo3'
[tool.black]
line-length = 119
target-version = "py38"
[tool.ruff]
line-length = 119
target-version = "py38"
lint.ignore = [
# a == None in tests vs is None.
"E711",
# a == False in tests vs is False.
"E712",
# try xx import except xx pattern without using the lib.
"F401",
# Raw type equality is required in asserts
"E721",
# Import order
"E402",
# Fixtures unused import
"F811",
# To ignore python/blerscore/__init__.py import errors
"F403",
"F405",
]