-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpyproject.toml
67 lines (59 loc) · 1.58 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
[tool.poetry]
name = "asari"
version = "0.2.0"
description = "Japanese sentiment analyzer implemented in Python."
authors = ["Hironsan <hiroki.nakayama.py@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/Hironsan/asari"
repository = "https://github.com/Hironsan/asari"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
]
packages = [{include = "asari"}]
[tool.poetry.dependencies]
python = "^3.8"
scikit-learn = "^1.1.1"
Janome = "^0.4.2"
skl2onnx = "^1.13"
packaging = "^21.3"
onnxruntime = "^1.12.1"
[tool.poetry.dev-dependencies]
taskipy = "^1.10.3"
black = "^22.10.0"
isort = "^5.10.1"
mypy = "^0.982"
pyproject-flake8 = "^5.0.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
include = '\.pyi?$'
[tool.flake8]
max-line-length = 120
max-complexity = 18
ignore = "E203,E266,W503"
filename = "*.py"
exclude = ".git,__pycache__,docs,build,dist"
[tool.isort]
profile = "black"
include_trailing_comma = true
multi_line_output = 3
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
show_error_codes = true
[tool.taskipy.tasks]
isort = "isort . -c"
flake8 = "pflake8 asari"
black = "black --check ."
mypy = "mypy asari"
test = "python -m unittest discover tests"
train = "python asari/train.py"