-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
113 lines (99 loc) · 2.89 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
107
108
109
110
111
112
113
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "holonote"
readme = "README.md"
description = "Annotate your data"
requires-python = ">=3.9"
license = { file = "LICENSE.txt" }
keywords = ["annotation", "holoviews", "tools"]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
dependencies = ["holoviews >=1.18.0", "pandas"]
[project.optional-dependencies]
tests = ["pytest"]
recommended = ["hvplot", "fastparquet", "scipy", "datashader", "dask[dataframe]"]
examples = ["holonote[recommended]", "jupyterlab", "jupyterlab-myst"]
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["holonote"]
[tool.hatch.build.targets.sdist]
include = ["holonote", "scripts"]
[tool.hatch.build.hooks.vcs]
version-file = "holonote/_version.py"
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers", "--color=yes"]
log_cli_level = "INFO"
minversion = "7"
xfail_strict = true
filterwarnings = [
"error",
# 2023-10: Datetime's utctimestamp() and utcnow() is deprecated in Python 3.12
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning:dateutil.tz.tz", # https://github.com/dateutil/dateutil/pull/1285
# 2024-01
"ignore:\\s+Pyarrow will become a required dependency of pandas", # Will fix itself
# 2024-09
"ignore:The (non_)?interactive_bk attribute was deprecated in Matplotlib 3.9", # OK - Only happening in debug mode
]
[tool.ruff]
line-length = 99
fix = true
[tool.ruff.lint]
select = [
"B",
"C4",
"E",
"EM",
"F",
"FLY",
"I",
"ICN",
"ISC",
"NPY",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
"PT",
"RUF",
"SIM",
"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
"F405", # From star imports
"PLE0604", # Invalid object in `__all__`, must contain only strings
"PLE0605", # Invalid format for `__all__`
"PLR091", # Too many arguments/branches/statements
"PLR2004", # Magic value used in comparison
"PLW2901", # `for` loop variable is overwritten
"RUF012", # Mutable class attributes should use `typing.ClassVar`
]
unfixable = [
"F401", # Unused imports
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"doc/generate_modules.py" = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["holonote"]
# required-imports = ["from __future__ import annotations"]
force-wrap-aliases = true
combine-as-imports = true
[tool.codespell]
write-changes = true