-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
74 lines (64 loc) · 1.62 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 = "ankiocr"
version = "0.7.1"
description = "Anki 2.1 addon to generate OCR text from images inside of Anki notes/cards."
authors = ["Chris Culhane <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "anki_ocr", from = "src" }
]
[tool.poetry.dependencies]
# Note these are the only dependencies that can be used, any others have to be vendorized
python = ">=3.9,<3.11"
anki = "^2.1.61"
aqt = { extras = ["qt6"], version = "^2.1.61" }
[tool.poetry.group.dev.dependencies]
mypy = "^1.2.0"
pytest = ">=6.0.0,<7.0.0"
pytest-html = "^3.2.0"
rich = "^13.3.4"
pre-commit = "^3.2.2"
ruff = "^0.0.261"
black = "^23.3.0"
tqdm = "^4.65.0"
types-decorator = "^5.1.8.3"
types-markdown = "^3.4.2.7"
types-protobuf = "^4.22.0.2"
types-requests = "^2.28.11.17"
types-urllib3 = "^1.26.25.10"
types-waitress = "^2.1.4.7"
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| generated
)/
'''
[tool.mypy]
files = "src/anki_ocr"
exclude = "colorlog|version|deps"
python_version = "3.9"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
show_error_codes = true
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.pytest.ini_options]
addopts = "-ra --showlocals --strict-markers --tb=short"
#addopts = tests/ -rfE --cov=anki_ocr --cov-report html --html=tests/reports/test_results/report.html
#;addopts = tests/ -rfE --showlocals
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"