-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (82 loc) 路 2.41 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
[tool.poetry]
name = "nlpstack"
version = "0.1.0"
description = "Modules for NLP"
authors = ["altescy <altescy@fastmail.com>"]
license = "MIT License"
readme = "README.md"
homepage = "https://github.com/altescy/nlpstack"
keywords=["python", "nlp", "pytorch", "scikit-learn"]
[tool.poetry.scripts]
nlpstack = "nlpstack.__main__:run"
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
collatable = ">=0.3.2"
colt = "^0.11.1"
dill = "^0.3.6"
minato = "^0.12.2"
numpy = "*"
rjsonnet = "^0.5.2"
scikit-learn = ">=1.0.0"
torch = ">=1.9.0,<2.0.1"
mlflow = {version = ">=2.0.0,<3.0.0", optional = true}
spacy = {version = ">=3.5.3,<4.0.0", optional = true}
transformers = {version = ">=4.12.3", optional = true}
fasttext-wheel = {version = "^0.9.2", optional = true}
optuna = {version = ">=3.2.0,<4.0.0", optional = true}
fugashi = {version = ">=1.2.1,<2.0.0", optional = true, extras = ["unidic-lite"]}
sentence-transformers = {version = ">=2.2.2", optional = true}
openai = {version = ">=1.0.0,<2.0.0", optional = true}
[tool.poetry.extras]
all = ["mlflow", "spacy", "transformers", "sentence-transformers", "fasttext-wheel", "fugashi", "optuna", "openai"]
[tool.poetry.group.dev.dependencies]
python-language-server = "^0.36.2"
pytest = "^7.4.4"
pysen = "^0.10.5"
black = "^23.12.1"
isort = "^5.13.2"
flake8 = "^5.0.4"
mypy = "^1.8.0"
types-setuptools = "^68.0.0.0"
types-requests = "^2.31.0.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^6.2.1"
sphinx-book-theme = "^1.0.1"
sphinx-autodoc-typehints = "^1.23.0"
sphinx-copybutton = "^0.5.2"
[tool.pysen]
version = "0.10"
[tool.pysen-cli]
settings_dir = "."
[tool.pysen.lint]
enable_black = true
enable_flake8 = true
enable_isort = true
enable_mypy = true
mypy_preset = "strict"
line_length = 120
py_version = "py38"
[[tool.pysen.lint.mypy_targets]]
paths = ["."]
[tool.pysen.lint.source]
includes = ["."]
excludes = [".venv/"]
[tool.black] # automatically generated by pysen
# pysen ignores and overwrites any modifications
line-length = 120
target-version = ["py38"]
[tool.isort] # automatically generated by pysen
# pysen ignores and overwrites any modifications
default_section = "THIRDPARTY"
ensure_newline_before_comments = true
force_grid_wrap = 0
force_single_line = false
include_trailing_comma = true
line_length = 120
multi_line_output = 3
use_parentheses = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"