| [project] |
| name = "learning-munsell" |
| version = "0.1.0" |
| description = "Learning Munsell: ML-based CIE xyY to Munsell specification conversion" |
| readme = "README.md" |
| requires-python = ">=3.11,<3.15" |
| authors = [ |
| { name = "Colour Developers", email = "colour-developers@colour-science.org" }, |
| ] |
| license = { text = "BSD-3-Clause" } |
| dependencies = [ |
| "click>=8.0.0", |
| "numpy>=2.0.0,<3", |
| "onnxruntime>=1.16.0", |
| "torch>=2.0.0", |
| "scikit-learn>=1.3.0", |
| "onnx>=1.15.0", |
| "matplotlib>=3.9", |
| "tqdm>=4.66.0", |
| "mlflow>=2.10.0", |
| "colour-science>=0.4.7", |
| "onnxscript>=0.5.6", |
| "optuna>=3.0.0", |
| "jax>=0.4.20", |
| "jaxlib>=0.4.20", |
| "flax>=0.10.7", |
| "optax>=0.2.6", |
| "scipy>=1.12.0,<2", |
| "tensorboard>=2.20.0", |
| "netron>=8.7.7", |
| ] |
|
|
| [dependency-groups] |
| dev = [ |
| "prek", |
| "pyright", |
| "pytest", |
| "ruff", |
| ] |
|
|
| [tool.codespell] |
| ignore-words-list = "colour" |
|
|
| [tool.isort] |
| ensure_newline_before_comments = true |
| force_grid_wrap = 0 |
| include_trailing_comma = true |
| line_length = 88 |
| multi_line_output = 3 |
| split_on_trailing_comma = true |
| use_parentheses = true |
|
|
| [tool.pyright] |
| reportMissingImports = false |
| reportMissingModuleSource = false |
| reportUnboundVariable = false |
| reportUnnecessaryCast = true |
| reportUnnecessaryTypeIgnoreComment = true |
| reportUnsupportedDunderAll = false |
| reportUnusedExpression = false |
|
|
| [tool.ruff] |
| target-version = "py311" |
| line-length = 88 |
|
|
| [tool.ruff.lint] |
| select = ["ALL"] |
| ignore = [ |
| "C", |
| "C90", |
| "COM", |
| "ERA", |
| "FBT", |
| "FIX", |
| "PT", |
| "PTH", |
| "TD", |
| "ANN401", |
| "D200", |
| "D202", |
| "D205", |
| "D301", |
| "D400", |
| "I001", |
| "N801", |
| "N802", |
| "N803", |
| "N806", |
| "N813", |
| "N815", |
| "N816", |
| "NPY002", |
| "PGH003", |
| "PLR0912", |
| "PLR0913", |
| "PLR0915", |
| "PLR2004", |
| "PYI036", |
| "PYI051", |
| "PYI056", |
| "RUF022", |
| "TRY003", |
| "UP038", |
| "N999", |
| "DTZ005", |
| ] |
|
|
| [tool.ruff.lint.pydocstyle] |
| convention = "numpy" |
|
|
| [tool.ruff.lint.per-file-ignores] |
| "__init__.py" = ["D104"] |
| "learning_munsell/training/*" = ["INP001", "T201"] |
| "learning_munsell/comparison/*" = ["INP001", "T201"] |
| |
| "learning_munsell/comparison/*/compare_all_models.py" = ["E501"] |
| "learning_munsell/data_generation/*" = ["INP001", "T201"] |
| "learning_munsell/interpolation/*" = ["INP001", "T201"] |
|
|
| [tool.ruff.format] |
| docstring-code-format = true |
|
|