-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (121 loc) · 3 KB
/
pyproject.toml
File metadata and controls
135 lines (121 loc) · 3 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = [
"setuptools >=30.3.0",
"setuptools_scm >=6",
]
build-backend = "setuptools.build_meta"
[project]
name = "colorcet"
dynamic = ["version"]
description = "Collection of perceptually uniform colormaps"
readme = "README.md"
license = "CC-BY-4.0"
license-files = ["LICENSE.txt"]
requires-python = ">=3.10"
authors = [
{ name = "James A. Bednar", email = "jbednar@anaconda.com" },
]
maintainers = [
{ name = "James A. Bednar", email = "jbednar@anaconda.com" },
]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Development Status :: 5 - Production/Stable",
"Typing :: Typed"
]
dependencies = []
[project.urls]
"Issue Tracker" = "https://github.com/holoviz/colorcet/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen"
Blog = "https://blog.holoviz.org/"
Discord = "https://discord.gg/AXRHnJU6sP"
Discourse = "https://discourse.holoviz.org"
Documentation = "https://colorcet.holoviz.org"
Funding = "https://opencollective.com/holoviz"
HoloViz = "https://holoviz.org/"
Homepage = "https://colorcet.holoviz.org"
Repository = "https://github.com/holoviz/colorcet"
[project.optional-dependencies]
tests = [
"pre-commit",
"pytest >=2.8.5",
"pytest-cov",
"packaging",
]
tests_extra = [
"colorcet[tests]",
"pytest-mpl", # only available on pip and conda-forge
]
examples = [
"numpy",
"holoviews",
"matplotlib",
"bokeh",
]
tests_examples = [
"colorcet[examples]",
"nbval",
]
doc = [
"colorcet[examples]",
"nbsite >=0.8.4",
"sphinx-copybutton",
]
all = [
"colorcet[tests]",
"colorcet[tests_extra]",
"colorcet[examples]",
"colorcet[doc]",
]
[tool.setuptools]
# To exclude PNG files in colorcet/tests/baseline
include-package-data = false
[tool.setuptools.packages.find]
include = ["colorcet"]
[tool.setuptools_scm]
version_file = "colorcet/_version.py"
[tool.setuptools.package-data]
colorcet = ["py.typed"]
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers", "--color=yes"]
minversion = "7"
xfail_strict = true
log_cli_level = "INFO"
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
exclude = '(?:^|/)tests/' # exclude the tests directory
strict = true
[tool.ruff]
fix = true
line-length = 99
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"RUF",
"UP",
"W",
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E712", # Comparison to true should be is
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
]
extend-unsafe-fixes = [
"F401", # Unused imports
"F841", # Unused variables
]
[tool.ruff.lint.isort]
known-first-party = ["colorcet"]
combine-as-imports = true
[tool.ty.src]
include = ["colorcet"]