-
Notifications
You must be signed in to change notification settings - Fork 64
/
pyproject.toml
94 lines (84 loc) · 2.46 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
[tool.poetry]
name = "doccano-client"
version = "1.2.8"
description = "A simple client for doccano API."
authors = ["Hironsan <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/doccano/doccano-client"
repository = "https://github.com/doccano/doccano-client"
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 = "doccano_client"}]
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.28.1"
dataclasses-json = "^0.5.7"
spacy = { version = "^3.4.1", optional = true }
spacy-partial-tagger = { version = "^0.9.1", optional = true }
tqdm = { version = "^4.64.1", optional = true }
pydantic = "^1.9.2"
requests-toolbelt = "^0.9.1"
ffmpeg-python = { version = "^0.2.0", optional = true }
seqal = { version = "^0.3.4", optional = true }
pandas = { version = "^1.5.1", optional = true }
pyyaml = "<5.4.0 || >5.4.0,<5.4.1 || >5.4.1,<6.0.0 || >6.0.0"
[tool.poetry.dev-dependencies]
flake8 = "^5.0.4"
isort = "^5.10.1"
mypy = "^0.971"
darglint = "^1.8.1"
black = "^22.8.0"
responses = "^0.21.0"
types-requests = "^2.28.10"
pytest = "^7.1.3"
pyproject-flake8 = "^5.0.4"
taskipy = "^1.10.3"
mkdocs = "^1.3.1"
mkdocs-material = "^8.5.3"
mkdocs-same-dir = "^0.1.1"
vcrpy = "^4.2.1"
mkdocstrings = {extras = ["python", "crystal"], version = "^0.19.0"}
[tool.poetry.extras]
spacy = ["spacy", "spacy-partial-tagger", "tqdm"]
whisper = ["ffmpeg-python", "tqdm"]
al = ["spacy", "seqal", "pandas"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
docli = 'doccano_client.cli.commands:main'
[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,doccano_client/beta"
[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
exclude = [
'doccano_client/beta',
]
[tool.taskipy.tasks]
isort = "isort . -c"
flake8 = "pflake8 doccano_client"
black = "black --check ."
darglint = "darglint"
mypy = "mypy doccano_client"
test = "python -m pytest"