-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (79 loc) · 2.07 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
[tool.poetry]
name = "ptyx-mcq"
version = "30.0.0"
description = "pTyX-MCQ is a generator/scanner of MCQ, based on pTyX."
authors = ["Nicolas Pourcelot <[email protected]>"]
repository = "https://github.com/wxgeo/ptyx"
license = "GPL-3.0-or-later"
readme = "README.md"
keywords = ["python", "tikz", "latex", "pdf", "exam", "mcq", "student"]
[tool.poetry.dependencies]
python = "^3.10"
Pillow = ">=9.2"
ptyx = "^29"
smallgraphlib = ">=0.10"
platformdirs = "^4"
openpyxl = ">=3.1.2"
argcomplete = "^3.1.2"
pymupdf = "^1.25.1"
[tool.poetry.group.dev.dependencies]
types-openpyxl = "^3.1.0.12"
types-Pillow = "^9.0.20"
pytest = "^7"
mypy = "^1.0"
black = "^24.10.0"
tox = "^4.14"
sphinx-autodoc-typehints = "^1.18.3"
sphinx-rtd-theme = "^1.0.0"#
myst-parser = "^1.0.0"
# Version 7.29+ are buggy !
python-semantic-release = "7.28.1"
ptyx = {path = "../ptyx", develop = true}
ruff = "^0.7.2"
pytest-xdist = "^3.5.0"
pytest-profiling = "^1.8.1"
[tool.poetry.scripts]
mcq = 'ptyx_mcq.cli:main'
mcq-dev = 'ptyx_mcq.dev_cli:main'
[tool.poetry.plugins."ptyx.extensions"]
mcq = "ptyx_mcq"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
filterwarnings = [
'ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning',
'ignore:builtin type SwigPyPacked has no __module__ attribute:DeprecationWarning',
'ignore:builtin type SwigPyObject has no __module__ attribute:DeprecationWarning',
]
[tool.mypy]
implicit_optional = true
warn_redundant_casts = true
# enable_error_code = true
warn_unused_ignores = true
strict_equality = true
check_untyped_defs = true
[tool.semantic_release]
version_variable = "pyproject.toml:version"
[tool.black]
line-length = 110
[tool.ruff]
line-length = 110
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = true
isolated_build = True
envlist = py311
[testenv]
passenv = HOME
allowlist_externals = poetry
commands =
poetry install -v
poetry run ruff check ptyx_mcq tests
poetry run mypy ptyx_mcq tests
poetry run pytest -n auto tests
"""