-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (89 loc) · 2.54 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (89 loc) · 2.54 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
[build-system]
requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "openlearn"
dynamic = ["version"]
description = "Local-first AI tutoring that keeps learning state in files you own"
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = "AGPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [{ name = "Ross" }]
dependencies = [
"fastapi>=0.115,<1",
"jinja2>=3.1,<4",
"pdfplumber>=0.11",
"platformdirs>=4.0",
"python-multipart>=0.0.9,<1",
"python-docx>=1.1",
"requests>=2.31",
"rich>=13.7",
"trafilatura>=1.9",
"uvicorn>=0.30,<1",
]
keywords = ["ai", "learning", "tutor", "local-first", "cli"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Education",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Education",
]
[project.optional-dependencies]
# Math-based forgetting-curve SRS. Opt in via `pip install openlearn[ebisu]` and
# `openlearn config` srs=ebisu; the fixed-interval schedule is the default.
ebisu = ["ebisu>=2.2,<3"]
dev = [
"build>=1.2,<2",
"deepeval>=2.0",
"httpx>=0.27,<1",
"pexpect>=4.9",
"playwright>=1.50,<2",
"pytest>=8.0",
"ruff==0.15.20",
]
[project.scripts]
openlearn = "openlearn.cli:main"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.dynamic]
version = { attr = "openlearn.__version__" }
[tool.setuptools.package-data]
openlearn = [
"templates/*.json",
"interview_skill_graphs/*.json",
"interview_problem_catalogs/*.json",
"drills.json",
"web/templates/*.html",
"web/templates/components/*.html",
"web/static/*.css",
"web/static/*.js",
"web/static/*.svg",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
addopts = "-m 'not slow'"
markers = [
"slow: marks tests as slow (AI judge calls; skip with -m 'not slow')",
]
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
# tui.py is an optional, lazily-imported prompt_toolkit front end; its dependency
# is intentionally not installed, so exclude it from the always-on lint lane.
extend-exclude = ["src/openlearn/tui.py"]
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["src"]
exclude = ["src/openlearn/tui.py"]
typeCheckingMode = "basic"