-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
97 lines (86 loc) · 2.47 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
91
92
93
94
95
96
97
# SPDX-FileCopyrightText: 2023 Mark Liffiton <[email protected]>
#
# 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='[email protected]' }
]
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.1.0",
"markdown-it-py~=3.0.0",
"openai~=1.0, >=1.26",
"pylti@git+https://github.com/liffiton/pylti",
"pyrage~=1.2.0",
"python-dotenv~=1.0.0",
"python-frontmatter~=1.1.0",
"tzdata; platform_system == 'Windows'", # Timezone data for Windows
]
[project.optional-dependencies]
test = [
"oauthlib~=3.2.2",
"pytest~=8.0",
"pytest-cov~=6.0.0",
"pytest-xdist~=3.6.1",
"mypy",
"types-requests",
"pyrage-stubs~=1.2.0",
]
[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]
include = ["pyproject.toml", "src/**/*.py"]
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
"PERF203",# try-except in a loop
"C408", # dict() vs dict literal
]
[tool.djlint]
profile = "jinja"
files = ["src/"]
ignore = "T001,H021,H023,H029"
[tool.mypy]
files = [ "src/" ]
strict = "True"
pretty = "True"