-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (92 loc) · 2.79 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
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
strict = true
vcs = "git"
# The 'pep440' style appends the git commit hash to the version number when there are commits
# since the last tag.
style = "pep440"
# Append a flag to the version number if there are uncommitted changes.
dirty = true
[tool.poetry]
name = "arcadia-pycolor"
# This version is a placeholder. It will be updated at build time by poetry-dynamic-versioning
# from the latest git tag.
version = "0.0.0"
description = "A Python package to distribute Arcadia's color and style guidelines for figures."
authors = [
"Keith Cheveralls <[email protected]>",
"Dennis Sun <[email protected]>",
]
readme = "README.md"
license = "MIT"
packages = [
{ include = "arcadia_pycolor" },
]
include = ["mplstyles/*"]
homepage = "https://github.com/Arcadia-Science/arcadia-pycolor"
repository = "https://github.com/Arcadia-Science/arcadia-pycolor"
documentation = "https://github.com/Arcadia-Science/arcadia-pycolor"
[[tool.poetry.source]]
name = "pypi"
priority = "primary"
[[tool.poetry.source]]
name = "pypi_test"
# Note: poetry only support the "legacy" API.
url = "https://test.pypi.org/legacy/"
[tool.poetry.dependencies]
colorspacious = ">=1.1.2"
# Disallow matplotlib 3.8.0 because it has a bug in `LinearSegmentedColormap`.
matplotlib = ">=3.7,!=3.8.0"
numpy = ">=1.20"
python = ">=3.9,<4.0"
[tool.poetry.group.dev.dependencies]
ipykernel = ">=6.25.2"
jupyter = ">=1.0.0"
pandas = "^2.2.2"
pre-commit = "3.5.0"
pyright = "^1.1.367"
pytest = "8.2.1"
ruff = "0.4.4"
scikit-learn = "^1.5.0"
seaborn = "^0.13.2"
poetry-dynamic-versioning = {extras = ["plugin"], version = "^1.4.0"}
[tool.ruff]
# The directories to consider when resolving first- vs. third-party imports.
src = ["."]
line-length = 100
indent-width = 4
extend-include = ["*.ipynb"]
[tool.ruff.lint.per-file-ignores]
# Ignore star and unused imports.
"__init__.py" = ["F403", "F405"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
order-by-type = true
no-lines-before = ["future", "standard-library"]
[tool.pyright]
typeCheckingMode = "basic"
include = ["."]
# TODO: add type hints for the tests.
exclude = ["**/tests/**"]
# Pyright reports a lot of unknown-member errors for matplotlib objects.
# For now, rather than add even more `type: ignore` comments, we'll just disable these errors.
reportUnknownMemberType = false