-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 2.67 KB
/
pyproject.toml
File metadata and controls
125 lines (110 loc) · 2.67 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[project]
name = "ankihub_addon"
description = "AnkiHub add-on for Anki"
readme = "README.md"
requires-python = ">=3.9"
version = "2026.03.25.1"
dependencies = []
[tool.setuptools]
package-dir = { "ankihub_addon" = "ankihub" }
[dependency-groups]
dev = [
"approvaltests>=12.2.0",
"coverage>=6.5.0",
"django-stubs>=5.1.3",
"factory-boy>=3.2.1",
"faker>=19.12.0",
"mypy>=1.18.2",
"pre-commit>=2.20.0",
"pytest>=8.2.2",
"pytest-anki",
"pytest-cov>=4.0.0",
"pytest-env>=0.6.2",
"pytest-mock>=3.12.0",
"pytest-qt>=4.2.0",
"pytest-retry>=1.6.3",
"pytest-split>=0.9.0",
"pytest-vcr>=1.0.2",
"requests-mock>=1.9.3",
"ruff>=0.14.0",
"typeguard>=2.13.3",
"types-factory-boy>=0.3.1",
"types-requests>=2.28.9",
"urllib3>=1.26.14,<2",
"vcrpy>=4.2.0",
]
bundle = [
"sentry_sdk==1.6.0",
"tenacity==8.2.2",
"structlog==24.1.0",
"peewee==3.18.2",
"mashumaro",
# We cannot use more recent versions because we still need to support Python 3.9
"django==4.2.27",
"django-cotton>=2.5.1",
]
aqt = ["aqt[qt]==25.9.2"]
aqt_legacy = ["aqt==2.1.56", "pyqt5==5.15.2", "pyqtwebengine==5.15.2"]
aqt_25_2_7 = [
"aqt==25.2.7",
"PyQt6==6.7.*",
"PyQt6-WebEngine==6.7.*",
]
[tool.uv]
conflicts = [
[
{ group = "aqt" },
{ group = "aqt_legacy" },
{ group = "aqt_25_2_7" },
],
]
[tool.uv.sources]
pytest-anki = { git = "https://github.com/ankipalace/pytest-anki.git", branch = "main" }
mashumaro = { git = "https://github.com/AnkiHubSoftware/mashumaro.git", branch = "master" }
[tool.mypy]
files = ['ankihub', 'tests/addon', 'tests/client']
exclude = [
'ankihub/media_import',
'ankihub/media_export',
'ankihub/gui/ankiaddonconfig',
'ankihub/lib'
]
strict_optional = false
[[tool.mypy.overrides]]
module = 'ankihub.*'
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
'ankihub.media_import.*',
'ankihub.media_export.*',
'structlog.*',
'mashumaro.*',
'ankihub.gui.ankiaddonconfig.*',
'sentry_sdk.*',
'urllib3.*',
'tenacity.*',
'peewee.*',
'django_cotton.*',
]
ignore_errors = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = 'anki._vendor.*'
ignore_missing_imports = true
[tool.ruff]
extend-exclude = ["lib", "media_import", "media_export", "ankihub/gui/ankiaddonconfig"]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E722", "E731", "E203", "E402"]
[tool.coverage.run]
source = ["ankihub"]
omit = ["ankihub/lib/**", "ankihub/media_export/**", "ankihub/media_import/**"]
[tool.coverage.paths]
source = ["./ankihub", "*/addons21/ankihub"]
[tool.coverage.html]
directory = "coverage_html_report"
show_contexts = true
[tool.coverage.report]
show_missing = true
skip_covered = true