File size: 2,122 Bytes
231976d
 
ced3c50
c5631c6
231976d
 
4018a2e
231976d
 
 
 
 
 
 
aea5589
 
 
 
8517064
3720a0e
52d97bd
 
 
e26e536
b665d70
 
 
aa4d65d
d18f436
 
 
231976d
 
 
 
 
 
 
ced3c50
aa4d65d
 
 
231976d
 
 
 
b665d70
 
 
231976d
2236e6d
1319de8
2236e6d
 
231976d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[tool.poetry]
name = "litbee"
version = "0.1.3-alpha.0"
description = "align (en, de, zh) texts via streamlit "
authors = ["ffreemt"]
license = "MIT"
readme = "README1.md"
repository = "https://github.com/ffreemt/litbee"

[tool.poetry.dependencies]
python = "^3.8.3"
logzero = "^1.7.0"
icecream = "^2.1.1"
install = "^1.3.5"
set-loglevel = "^0.1.2"
streamlit-multipage = "^0.0.18"
cchardet = "^2.1.7"
streamlit-aggrid = "^0.2.3"
dzbee = "^0.1.1-alpha.2"
loguru = "^0.6.0"
streamlit = "^1.9.2"
debee = "^0.1.0-alpha.2"
ezbee = "^0.1.0"
streamlit-option-menu = "^0.3.2"
plotly = "^5.8.0"
hanzidentifier = "^1.0.2"
opencc-python-reimplemented = "^0.1.6"
tabulate = "^0.8.9"
httpx = "^0.23.0"
html2text = "^2020.1.16"
readability-lxml = "^0.8.1"

[tool.poe.executor]
type = "poetry"

[tool.poe.tasks]
memo = "echo poe test or poetry run poe test"
test = "pytest tests"
pyright = "pyright litbee app.py"
flake8 = "flake8 litbee --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 litbee" }
isort = "isort tests litbee"
black = "black tests litbee"
format = ["isort", "black"]
docstyle = "pydocstyle --convention=google tests litbee"
cpapp = "cp app.py litbee"
prerelease = {cmd = "poetry version prerelease && sync-version"}
git = {cmd = "git push && git push github"}
deploy = ["cpapp", "export", "git"]
tunnel = {cmd = "ssh -CN ip_or_hostname_defined_in_hosts -L 9091:127.0.0.1:9091"}

[tool.poetry.dev-dependencies]
pytest = "^7.1"
flake8 = "^3.9.2"
pydocstyle = "^6.1.1"
toml = "^0.10.2"
# tbump = "^6.3.2"
poethepoet = "^0.10.0"

[tool.poetry.scripts]
"litbee" = "litbee.__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