-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
91 lines (75 loc) · 2.46 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "questionpy-sdk"
description = "Library and toolset for the development of QuestionPy packages"
authors = ["innoCampus <[email protected]>"]
license = "MIT"
homepage = "https://questionpy.org"
version = "0.3.0"
packages = [
{ include = "questionpy" },
{ include = "questionpy_sdk" }
]
include = ["questionpy_sdk/resources/minimal_example.zip"]
[tool.poetry.build]
generate-setup-file = false
script = "build.py"
[tool.poetry.scripts]
questionpy-sdk = 'questionpy_sdk.__main__:cli'
[tool.poetry.dependencies]
click = "^8.1.7"
python = "^3.11"
aiohttp = "^3.9.3"
pydantic = "^2.6.4"
PyYAML = "^6.0.1"
questionpy-server = { git = "https://github.com/questionpy-org/questionpy-server.git", rev = "3ae1fcc79b1c9440d40cbe5b48d16ac4c68061b9" }
jinja2 = "^3.1.3"
aiohttp-jinja2 = "^1.6"
lxml = "~5.1.0"
[tool.poetry.group.dev.dependencies]
types-PyYAML = "^6.0.12.20240311"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.1.1"
pytest-aiohttp = "^1.0.5"
pytest-md = "^0.2.0"
coverage = { extras = ["toml"], version = "^7.4.4" }
selenium = "^4.19.0"
lxml-stubs = "^0.5.1"
[tool.poetry.group.linter]
dependencies = { ruff = "^0.6.3" }
optional = true
[tool.poetry.group.type-checker]
dependencies = { mypy = "^1.11.0" }
optional = true
[tool.ruff]
extend = "ruff_defaults.toml"
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["mcs", "test_*"]
[tool.ruff.lint.extend-per-file-ignores]
# Allow f-string without an `f` prefix for our custom error formatter.
"**/questionpy_sdk/webserver/question_ui/errors.py" = ["RUF027"]
# unused-async (aiohttp handlers must be async even if they don't use it)
"**/questionpy_sdk/webserver/routes/*" = ["RUF029"]
[tool.ruff.lint.pylint]
allow-dunder-method-names = ["__get_pydantic_core_schema__"]
[tool.pytest.ini_options]
addopts = "--doctest-modules"
# https://github.com/pytest-dev/pytest-asyncio#auto-mode
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope="function"
markers = ["render_params", "source_pkg", "ui_file"]
# This section is read automatically by Coverage.py when its working directory is .
# https://coverage.readthedocs.io/en/6.5.0/config.html#configuration-reference
[tool.coverage.run]
branch = true
source = ["questionpy", "questionpy_sdk"]
[tool.mypy]
plugins = "pydantic.mypy"
disallow_untyped_defs = true
strict_optional = true
show_error_codes = true
exclude = ["^examples/"]