47 lines
738 B
TOML
47 lines
738 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "optimg"
|
|
dynamic = ["version"]
|
|
description = "Optimize JPEG and PNG files from a directory."
|
|
dependencies = [
|
|
"tqdm==4.67.1",
|
|
]
|
|
|
|
[project.scripts]
|
|
optimg = "optimg.__main__:main"
|
|
|
|
[tool.hatch.version]
|
|
path = "src/__init__.py"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src"]
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
only-include = ["src"]
|
|
|
|
[tool.hatch.build.targets.wheel.sources]
|
|
"src" = "optimg"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I"]
|
|
ignore = []
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
"venv",
|
|
]
|
|
|
|
line-length = 88
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint.mccabe]
|
|
max-complexity = 10
|
|
|
|
[tool.mypy]
|
|
exclude = [
|
|
"venv",
|
|
]
|
|
ignore_missing_imports = true |