[build-system]
requires = ["setuptools>=61.0", ]
build-backend = "setuptools.build_meta"

[project]
name = "excel2moodle"
version = "0.5.1"
authors = [
  { name="Jakob Bosse" },
]
license = "GPL-3.0-or-later"
keywords = ["moodle", "XML", "teaching", "question", "converter", "open educational Ressource" ]

dependencies = [
    "pyside6>=6.8.0",
    "pandas>=2.1.3",
    "lxml>=5.4.0",
    "asteval>=1.0.6",
    "python-calamine>=0.3.2",
]

description = "A package for converting questions from a spreadsheet, to valid moodle-xml"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
    "Programming Language :: Python :: 3",
    "Operating System :: OS Independent",
]

[project.scripts]
excel2moodle = "excel2moodle.__main__:main"

# [project.gui-scripts]
# excel2moodle = "excel2moodle.__main__:main"

[tool.setuptools.packages.find]
where = ["."]  # Look for packages in the root directory
include = ["excel2moodle*"]  # Include all packages starting with excel2moodle
namespaces = false

[too.pytest.ini_options]
pythonpath = ["."]

[dependency-groups]
dev = [
    "ty>=0.0.1a10",
]

[project.urls]
Repository = "https://gitlab.com/jbosse3/excel2moodle.git"
Documentation = "https://jbosse3.gitlab.io/excel2moodle"

[tool.ruff]
show-fixes = true
unsafe-fixes = true
line-length = 88


[tool.ruff.lint]
select = ["ALL"]
ignore = ["N802", "N803", "N806","N815", "Q0", "W191", "D213","D203", "COM812"]
fixable = ["ALL"]
unfixable = ["T201", "F841"]

[tool.ruff.lint.pycodestyle]
max-doc-length = 88

[tool.ruff.format]
quote-style = "double"

