-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
74 lines (65 loc) · 1.74 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
[tool.poetry]
name = "qwen7b-tr"
version = "0.1.0a4"
description = "Translate/Chat via qwen-7b huggingface api"
authors = ["ffreemt"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/ffreemt/qwen7b-tr"
[tool.poetry.dependencies]
python = "^3.8"
loguru = "^0.7.0"
typer = "^0.4.1"
gradio-client = "^0.4.0"
pyperclip = "^1.8.2"
rich = "^13.5.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.0.278"
pytest = "^7.1"
flake8 = "^3.9.2"
isort = "^5.10.1"
black = "^22.3.0"
pylint = "^2.14.2"
pyright = "^1.1.254"
pydocstyle = "^6.1.1"
poethepoet = "^0.10.0"
nuitka = "^1.7.10"
[tool.poe.executor]
type = "poetry"
[tool.poe.tasks]
memo = "echo poe test or poetry run poe test"
ruff = "ruff ."
ruff-fix = "ruff . --fix"
test = "pytest tests"
pyright = "pyright qwen7b_tr"
flake8 = "flake8 qwen7b_tr --ignore F401,E501,F841"
check = ["pyright", "flake8"]
export = "poetry export --without-hashes -f requirements.txt -o requirements.txt"
build = "poetry build"
publish = "poetry publish"
release = ["test", "build", "publish"]
lint = { cmd = "pylint qwen7b_tr" }
isort = "isort tests qwen7b_tr"
black = "black tests qwen7b_tr"
format = ["isort", "black"]
docstyle = "pydocstyle --convention=google tests qwen7b_tr"
prerelease = {cmd = "poetry version prerelease && sync-version"}
tunnel = {cmd = "ssh -CN ip_or_hostname_defined_in_hosts -L 9091:127.0.0.1:9091"}
[tool.poetry.scripts]
"qwen7b-tr" = "qwen7b_tr.__main__:app"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --doctest-modules"
log_cli = true
testpaths = [
"tests",
# "integration",
]
[tool.black]
skip-string-normalization = 0
[tool.isort]
profile = "black"
multi_line_output = 3