-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (95 loc) · 3.94 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (95 loc) · 3.94 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
100
101
102
103
104
105
106
[build-system]
requires = ["setuptools>=77.0", "pybind11>=2.10", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "wimf"
version = "2.2.0"
authors = [
{ name="BenchWare", email="ivanm12453@gmail.com" },
]
description = "WIM2 hybrid image codec with a Python frontend and portable C++ core"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Topic :: Multimedia :: Graphics",
]
dependencies = [
"numpy",
"pillow",
"zstandard>=0.22",
]
[project.scripts]
wimf = "wimf.commands:main"
wimf-studio = "wimf.studio_cli:main"
wimf-convert = "wimf.cli:main"
wimf-view = "wimf.studio_cli:main"
wimf-meta = "wimf.meta_tool:main"
wimf-cat = "wimf.cat:main"
[project.urls]
"Homepage" = "https://github.com/benchware/WorstImageFormat"
"Documentation" = "https://github.com/benchware/WorstImageFormat/tree/main/docs"
"Issues" = "https://github.com/benchware/WorstImageFormat/issues"
"Changelog" = "https://github.com/benchware/WorstImageFormat/blob/main/CHANGELOG.md"
"Source" = "https://github.com/benchware/WorstImageFormat"
[tool.setuptools.packages.find]
where = ["."]
include = ["wimf*"]
# ── pytest ────────────────────────────────────────────────────────────[...]
[tool.pytest.ini_options]
testpaths = ["wimf"]
# ── ruff ──────────────────────────────────────────────────────────────[...]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes (undefined names, unused imports, etc.)
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
]
ignore = [
"E501", # line-too-long – formatter handles this
"E701", # multiple statements on one line (colon) – deliberate codebase style
"E702", # multiple statements on one line (semicolon) – deliberate codebase style
"E741", # ambiguous variable names (l, O, I) – used in codec math intentionally
"F841", # local var assigned but never used – some intentional sentinel vars in codec
"B007", # loop variable not used in loop body – intentional in some unpack loops
"UP007", # use X | Y for type unions – pre-3.10 compat needed
]
[tool.ruff.lint.per-file-ignores]
# Tests can use unused imports for fixtures and structure
"wimf/test_core.py" = ["F401"]
"wimf/test_studio.py" = ["F401"]
# viewer and cat have necessary bare excepts for UI/import resilience
"wimf/viewer.py" = ["E722"]
"wimf/cat.py" = ["E722"]
[tool.ruff.lint.isort]
known-first-party = ["wimf"]
# ── mypy ──────────────────────────────────────────────────────────────[...]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
no_strict_optional = true
warn_unused_ignores = false
# ── cibuildwheel ──────────────────────────────────────────────────────[...]
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-* cp314-*"
skip = "*-musllinux*"
test-command = "python {project}/tests/wheel_smoke.py"
manylinux-x86_64-image = "manylinux_2_28"