-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
94 lines (77 loc) · 1.64 KB
/
pyproject.toml
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
[project]
name = "viscm"
dynamic = ["version"]
description = "A colormap tool"
readme = "README.rst"
authors = [
{name = "Nathaniel J. Smith", email = "[email protected]"},
{name = "Stefan van der Walt", email = "[email protected]"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = "~=3.9"
dependencies = [
"numpy ~=1.22",
"matplotlib ~=3.5",
"colorspacious ~=1.1",
"scipy ~=1.8",
]
[project.optional-dependencies]
# Qt6 was released 2020.08.12
PySide = ["PySide6"]
PyQt = ["PyQt6"]
[project.urls]
repository = "https://github.com/matplotlib/viscm"
# documentation = "https://viscm.readthedocs.io"
[project.license]
text = "MIT"
files = ["LICENSE"]
[project.scripts]
viscm = "viscm.cli:cli"
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
packages = {find = {}}
package-data = {viscm = ["examples/*"]}
[tool.mypy]
python_version = "3.9"
# These libraries don't have type stubs. Mypy will see them as `Any` and not
# throw an [import] error.
[[tool.mypy.overrides]]
module = [
"colorspacious",
"matplotlib.*",
"mpl_toolkits.*",
"scipy.*",
]
ignore_missing_imports = true
[tool.black]
target-version = ["py39", "py310", "py311"]
[tool.ruff]
target-version = "py39"
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"B",
"A",
"C4",
"T10",
"RUF",
]
[tool.ruff.per-file-ignores]
"viscm/gui.py" = ["N8"]
[tool.ruff.mccabe]
max-complexity = 11