|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61", "wheel"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "learning-commons-inspect-scorers" |
| 7 | +version = "0.1.0" |
| 8 | +description = "Inspect AI scorer wrappers for Learning Commons evaluators" |
| 9 | +readme = "README.md" |
| 10 | +license = { text = "MIT" } |
| 11 | +requires-python = ">=3.10" |
| 12 | +authors = [{ name = "Learning Commons" }] |
| 13 | +keywords = ["education", "evaluators", "inspect", "evals", "scoring"] |
| 14 | +classifiers = [ |
| 15 | + "Development Status :: 3 - Alpha", |
| 16 | + "Intended Audience :: Developers", |
| 17 | + "License :: OSI Approved :: MIT License", |
| 18 | + "Programming Language :: Python :: 3", |
| 19 | + "Programming Language :: Python :: 3.10", |
| 20 | + "Programming Language :: Python :: 3.11", |
| 21 | + "Programming Language :: Python :: 3.12", |
| 22 | + "Programming Language :: Python :: 3.13", |
| 23 | + "Topic :: Education", |
| 24 | +] |
| 25 | +dependencies = [ |
| 26 | + "learning-commons-evaluators>=0.2.0", |
| 27 | + # Score.unscored() — used in every skip/error path of gla_scorer — was added in inspect-ai 0.3.214. |
| 28 | + "inspect-ai>=0.3.214", |
| 29 | +] |
| 30 | + |
| 31 | +[project.optional-dependencies] |
| 32 | +dev = [ |
| 33 | + "pytest>=7.0.0", |
| 34 | + "pytest-asyncio>=0.21.0", |
| 35 | + "ruff>=0.9.0", |
| 36 | + "mypy>=1.14.0", |
| 37 | +] |
| 38 | + |
| 39 | +[project.urls] |
| 40 | +Homepage = "https://github.com/learning-commons-org/evaluators" |
| 41 | +Repository = "https://github.com/learning-commons-org/evaluators/tree/main/integrations/inspect-python" |
| 42 | +Documentation = "https://docs.learningcommons.org/evaluators" |
| 43 | +"Bug Tracker" = "https://github.com/learning-commons-org/evaluators/issues" |
| 44 | + |
| 45 | +# Registers scorers with Inspect's component discovery via setuptools entry points. |
| 46 | +# Once installed, scorers are accessible as e.g. `learning_commons_inspect_scorers/gla_scorer` |
| 47 | +# from the CLI: inspect score log.eval --scorer learning_commons_inspect_scorers/gla_scorer |
| 48 | +[project.entry-points.inspect_ai] |
| 49 | +learning_commons_inspect_scorers = "learning_commons_inspect_scorers._registry" |
| 50 | + |
| 51 | +[tool.setuptools.packages.find] |
| 52 | +where = ["src"] |
| 53 | + |
| 54 | +[tool.setuptools.package-data] |
| 55 | +learning_commons_inspect_scorers = ["py.typed"] |
| 56 | + |
| 57 | +[tool.pytest.ini_options] |
| 58 | +asyncio_mode = "auto" |
| 59 | +testpaths = ["tests"] |
| 60 | + |
| 61 | +[tool.ruff] |
| 62 | +target-version = "py310" |
| 63 | +line-length = 100 |
| 64 | + |
| 65 | +[tool.ruff.lint] |
| 66 | +select = ["E", "W", "F", "I", "UP", "B", "SIM"] |
| 67 | +ignore = ["E501"] |
| 68 | + |
| 69 | +[tool.mypy] |
| 70 | +python_version = "3.10" |
| 71 | +mypy_path = ["src", "tests"] |
| 72 | +explicit_package_bases = true |
| 73 | +plugins = ["pydantic.mypy"] |
| 74 | +warn_unused_configs = true |
| 75 | +show_error_codes = true |
0 commit comments