-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
90 lines (80 loc) · 2.24 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# SPDX-FileCopyrightText: 2023 Mark Liffiton <liffiton@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-only
[project]
name = 'Gen-Ed'
description = "A framework for building web applications using generative AI (LLMs) for education."
version = '0.1.0'
authors = [
{ name='Mark Liffiton', email='liffiton@gmail.com' }
]
readme = 'README.md'
requires-python = '>=3.10'
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Flask",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Topic :: Education",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"Authlib~=1.3.0",
"Flask~=3.0.0",
"markdown-it-py~=3.0.0",
"openai~=1.0, >=1.26",
"pylti@git+https://github.com/liffiton/pylti",
"python-dotenv~=1.0.0",
"python-frontmatter~=1.1.0",
"pytz",
]
[project.optional-dependencies]
test = [
"coverage~=7.0",
"oauthlib~=3.2.2",
"pytest~=8.0",
"pytest-cov~=4.1.0",
"pytest-xdist~=3.5.0",
"mypy",
"types-colorama",
"types-pytz",
"types-requests",
]
[tool.pytest.ini_options]
log_level = 'DEBUG'
testpaths = 'tests'
addopts = [
"--import-mode=importlib",
"-n=auto",
]
markers = [
"use_real_openai: marks any test that sends requests to the real OpenAI endpoint",
]
[tool.ruff]
output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line too long
"COM812", # missing trailing comma
"ERA001", # commented-out code
"RET504", # unnecessary assignment before return
"RET505", # unnecessary else after return
"S101", # assert statements
"S311", # pseudo-random number generators
"T20", # Flake8-print (print statements)
"TRY400", # logger.error() inside except block
"G004", # f-string in logging statement
"EM", # Exceptions with string literals
"Q", # string quoting
"D", # docstrings
"ANN", # type annotation
"TD", # TODOs
]
[tool.mypy]
files = [ "src/**/*.py" ]
strict = "True"
pretty = "True"