| 1 |
[build-system] |
| 2 |
requires = ["hatchling>=1.20.0", "hatch-vcs", "hatch-fancy-pypi-readme"] |
| 3 |
build-backend = "hatchling.build" |
| 4 |
|
| 5 |
[project.urls] |
| 6 |
Homepage = "https://github.com/wkentaro/imgviz" |
| 7 |
|
| 8 |
[project] |
| 9 |
name = "imgviz" |
| 10 |
description = "Image Visualization Tools" |
| 11 |
license = { text = "MIT" } |
| 12 |
requires-python = ">=3.9" |
| 13 |
authors = [ |
| 14 |
{ name = "Kentaro Wada", email = "[email protected]" }, |
| 15 |
] |
| 16 |
keywords = [] |
| 17 |
classifiers = [ |
| 18 |
"Development Status :: 5 - Production/Stable", |
| 19 |
"Environment :: Console", |
| 20 |
"Intended Audience :: Developers", |
| 21 |
"License :: OSI Approved :: MIT License", |
| 22 |
"Operating System :: OS Independent", |
| 23 |
"Programming Language :: Python", |
| 24 |
"Programming Language :: Python :: 3 :: Only", |
| 25 |
"Programming Language :: Python :: 3.9", |
| 26 |
"Programming Language :: Python :: 3.10", |
| 27 |
"Programming Language :: Python :: 3.11", |
| 28 |
"Programming Language :: Python :: 3.12", |
| 29 |
"Programming Language :: Python :: 3.13", |
| 30 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 31 |
] |
| 32 |
dependencies = [ |
| 33 |
"matplotlib", |
| 34 |
"numpy", |
| 35 |
"Pillow>=5.3.0", |
| 36 |
"PyYAML", |
| 37 |
] |
| 38 |
dynamic = ["readme", "version"] |
| 39 |
|
| 40 |
[project.optional-dependencies] |
| 41 |
all = [ |
| 42 |
"scikit-image", |
| 43 |
"scikit-learn", |
| 44 |
"opencv-python", |
| 45 |
"pyglet", |
| 46 |
] |
| 47 |
test = [ |
| 48 |
"build", |
| 49 |
"mypy", |
| 50 |
"types-Pillow", |
| 51 |
"types-PyYAML", |
| 52 |
"pytest", |
| 53 |
"pytest-xdist", |
| 54 |
"ruff", |
| 55 |
"twine", |
| 56 |
] |
| 57 |
|
| 58 |
[tool.hatch.metadata] |
| 59 |
allow-direct-references = true |
| 60 |
|
| 61 |
[tool.hatch.metadata.hooks.fancy-pypi-readme] |
| 62 |
content-type = "text/markdown" |
| 63 |
fragments = [ |
| 64 |
{ path = "README.md" }, |
| 65 |
] |
| 66 |
|
| 67 |
[tool.hatch.version] |
| 68 |
source = "vcs" |
| 69 |
|
| 70 |
[tool.mypy] |
| 71 |
ignore_missing_imports = true |
| 72 |
|
| 73 |
[tool.ruff] |
| 74 |
exclude = [ |
| 75 |
".conda", |
| 76 |
".git", |
| 77 |
"src", |
| 78 |
] |
| 79 |
|
| 80 |
line-length = 88 |
| 81 |
indent-width = 4 |
| 82 |
|
| 83 |
[tool.ruff.lint] |
| 84 |
|
| 85 |
select = ["E", "F", "I"] |
| 86 |
ignore = [] |
| 87 |
|
| 88 |
|
| 89 |
fixable = ["ALL"] |
| 90 |
unfixable = [] |
| 91 |
|
| 92 |
[tool.ruff.format] |
| 93 |
|
| 94 |
quote-style = "double" |
| 95 |
|
| 96 |
|
| 97 |
indent-style = "space" |
| 98 |
|
| 99 |
|
| 100 |
skip-magic-trailing-comma = false |
| 101 |
|
| 102 |
|
| 103 |
line-ending = "auto" |
| 104 |
|
| 105 |
[tool.ruff.lint.isort] |
| 106 |
force-single-line = true |