-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
80 lines (70 loc) · 2.07 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
[build-system]
requires = ["setuptools >= 64.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "imgcat"
dynamic = ["version"]
description = "imgcat as Python API and CLI"
readme = "README.md"
requires-python = ">=3.6"
license = {text = "MIT"}
authors = [
{ name = "Jongwook Choi", email = "wookayin@gmail.com" },
]
keywords = ["imgcat", "iterm2", "matplotlib"]
classifiers = [
"Development Status :: 3 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/wookayin/python-imgcat"
[project.scripts]
imgcat = "imgcat:main"
[tool.setuptools.dynamic]
version = { attr = "imgcat.__version__" }
[project.optional-dependencies]
test = [
"pytest",
"numpy>=1.21,<2.0; python_version < '3.12'",
"numpy>=2.0; python_version >= '3.12'",
"torch>=2.0,<3.0; python_version >= '3.8'",
"tensorflow>=2.0,<3.0; python_version >= '3.8' and python_version < '3.13'",
"matplotlib>=3.3",
"Pillow",
]
# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 79
indent-width = 4
target-version = "py310"
# https://docs.astral.sh/ruff/rules/
[tool.ruff.lint]
preview = true # use experimental features
extend-select = [
# In addition to the defaults: ["E4", "E7", "E9", "F"]
"PLE", # pylint errors
"PLW", # pylint warnings
"RUF", # ruff-specific
]
ignore = [
"E702", # multiple-statements-on-one-line-semicolon
"E731", # lambda-assignment
]
# torch (for CI): use CPU-only whl, no need to install CUDA stuffs
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true