[build-system] build-backend = "setuptools.build_meta" requires = [ "setuptools>=64", "setuptools-scm>=8" ] [project] name = "cytorecorder" description = "Local companion CLI for CytoRecorder/Musivarium: confirms a folder of whole microscopy images exists (recursively) and opens the hosted CytoRecorder app so a human can complete the whole-image QC review and export themselves." readme = "README.md" authors = [ { name = "Dave Bunten" }, ] requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] dynamic = [ "version" ] dependencies = [ "fire>=0.7", "jinja2>=3.1.6", ] urls.Homepage = "https://github.com/WayScience/CytoRecorder" urls.Issues = "https://github.com/WayScience/CytoRecorder/issues" urls.Repository = "https://github.com/WayScience/CytoRecorder" scripts.cytorecorder = "cytorecorder.cli:trigger" [dependency-groups] dev = [ "coverage[toml]>=7.10.6", "poethepoet>=0.34", "pytest>=8.3.5", "pytest-cov>=6.2.1", ] docs = [ "myst-nb>=1.2", "pydata-sphinx-theme>=0.16.1", "sphinx>=8.2.3", ] notebooks = [ "black>=25.1", "isort>=6.0.1", "jupyterlab>=4.4.2", "jupyterlab-code-formatter>=3.0.2", "jupytext>=1.17.1", ] [tool.setuptools] package-dir = { "" = "src" } include-package-data = true [tool.setuptools.packages.find] where = [ "src" ] include = [ "cytorecorder*" ] [tool.setuptools_scm] # This package now lives as a subdirectory of the WayScience/CytoRecorder # monorepo rather than its own git root, so point setuptools-scm at the # actual repo root and scope tag parsing to this package's own release # tags (e.g. "cytorecorder-v0.1.0") so unrelated repo tags never # affect this package's computed version. root = ".." tag_regex = "^cytorecorder-v(?P[0-9]+\\.[0-9]+\\.[0-9]+.*)$" version_scheme = "no-guess-dev" local_scheme = "no-local-version" version_file = "src/cytorecorder/_version.py" [tool.ruff] target-version = "py311" line-length = 88 fix = true lint.select = [ # flake8-builtins "A", # flake8-annotations "ANN", # flake8-comprehensions "C4", # mccabe "C90", # pycodestyle "E", # pyflakes "F", # isort "I", # pylint "PL", # ruff "RUF", # flake8-simplify "SIM", "W", ] # Ignore `F401` (unused imports) for `__init__.py` file lint.per-file-ignores."__init__.py" = [ "F401" ] [tool.pytest.ini_options] pythonpath = [ "." ] addopts = [ "--cov=cytorecorder", "--cov-report=term-missing", "--cov-report=xml", ] [tool.coverage.run] branch = true source = [ "src/cytorecorder" ] [tool.coverage.report] show_missing = true skip_covered = true [tool.poe.tasks] # tasks for development environments test.shell = """ pytest """ lint.shell = """ pre-commit run --all-files """ pipeline.shell = """ pre-commit run --all-files && pytest """ jupyter.shell = """ jupyter lab """ [tool.jupytext] formats = "ipynb,py:light" [tool.vulture] min_confidence = 90 paths = [ "src/cytorecorder", "tests" ]