-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (93 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
99 lines (93 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "batch_img"
version = "0.3.9"
description = "Batch process (resize, rotate, remove background, remove GPS, add border, set transparency, auto do all) image files (HEIC, JPG, PNG)"
readme = "README.md"
authors = [{ name = "John Liu", email = "rim2rim@gmail.com" }]
license = "MIT"
license-files = ["LICENSE"]
keywords = ["cli-tool", "image-processing", "batch-processing", "special-effect", "remove-background", "remove-gps", "resize-image", "rotate-image"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
]
requires-python = ">=3.12"
dependencies = [
"click",
"httpx",
"loguru",
"numpy",
"onnxruntime",
"opencv-python",
"packaging",
"piexif",
"pillow",
"pillow-heif",
"rembg", # `remove background` depends on onnxruntime
"tqdm",
]
[project.scripts]
batch_img = "batch_img.interface:cli"
[project.urls]
Download = "https://pypi.org/project/batch-img/"
Homepage = "https://github.com/john-liu2/batch_img"
[tool.hatch.build.targets.sdist]
include = [
"batch_img/*.py",
"batch_img/config.json",
"pyproject.toml",
"README.md",
"LICENSE",
]
[project.optional-dependencies]
dev = [
"build", # for python -m build
"pytest-cov", # also install pytest
"black>=25.1.0",
"ruff",
"pre-commit", # rules are in .pre-commit-config.yaml
"pylint",
]
[tool.ruff]
line-length = 88
lint.select = [
"B", # bugbear
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"PD", # pandas-vet
"RET", # flake8-return (includes no-else-return)
"PL", # pylint
"C416", # Unnecessary comprehension (R1721 from Pylint)
]
lint.ignore = [
"RET504",
"PLR2004", # Magic value used in comparison, consider replacing `3` with a constant variable
]
lint.fixable = ["E", "F", "I", "UP"]
preview = true
exclude = [
"**/venv/",
"**/__pycache__/",
"**/migrations/",
"**/tests/",
"**/build/",
"**/generated/**/*.py",
]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
[run]
parallel = true