-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (118 loc) · 4.45 KB
/
pyproject.toml
File metadata and controls
133 lines (118 loc) · 4.45 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 77.0.3",
]
[project]
name = "larray"
version = "0.36-dev"
description = "N-D labeled arrays in Python"
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
{name = "Gaetan de Menten", email = "gdementen@gmail.com"},
{name = "Alix Damman", email = "ald@plan.be"},
{name = "Geert Bryon"},
{name = "Johan Duyck"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
license = 'GPL-3.0-only'
license-files = ["LICENSE"]
requires-python = ">=3.9"
dependencies = [
"numpy >= 1.22",
# pandas >= 0.20.0 is required since commit
# 01669f2024a7bffe47cceec0a0fd845f71b6f7cc
# (issue 702 : fixed bug when writing metadata using HDF format)
"pandas >= 0.20.0",
]
[project.optional-dependencies]
test = ["pytest"]
[project.urls]
homepage = "https://github.com/larray-project/larray"
repository = "https://github.com/larray-project/larray"
issues = "https://github.com/larray-project/larray/issues"
documentation = "https://larray.readthedocs.io/en/stable/"
[tool.setuptools.packages.find]
where = ["."]
namespaces = false
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"larray"
]
addopts = [
"-v",
"--doctest-modules",
# auto/long/short/line/native/no
"--tb=short",
# ignore module (because importing it raise an Exception)
"--ignore=larray/ipfp",
# exclude (doc)tests from ufuncs (because docstrings are copied from numpy
# and many of those doctests are failing)
"--deselect=larray/core/npufuncs.py",
"--deselect=larray/inout/xw_reporting.py",
# doctest is copied from numpy (and fails for some Python + numpy version combinations)
"--deselect=larray/core/array.py::larray.core.array.Array.astype",
# skip Pandas-leeched doctests because they are not larray-specific and,
# without Pandas-specific documentation build infrastructure, they leave
# some plots open
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.area",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.bar",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.barh",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.box",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.hexbin",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.hist",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.kde",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.line",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.pie",
"--deselect=larray/core/plot.py::larray.core.plot.PlotObject.scatter",
# "--cov",
]
filterwarnings = [
# turn warnings into errors (unless they are explicitly handled in tests or ignored here)
"error",
# as of version 3.1.2, openpyxl uses datetime.datetime.utcnow() which is deprecated in Python 3.12
"ignore::DeprecationWarning:openpyxl.*:",
# as of version 3.1.1, xlsxwriter uses datetime.datetime.utcnow() which is deprecated in Python 3.12
"ignore::DeprecationWarning:xlsxwriter.*:",
"ignore:Special variable 'x' is deprecated.*:FutureWarning:inspect.*:",
"ignore:Special variable 'x' is deprecated.*:FutureWarning:_pytest.compat.*:",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
"__pypackages__",
"build",
"dist",
]
line-length = 120
[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
# fixable = ["A", "B", "C", "D", "E", "F", "..."]
# unfixable = []
[tool.ruff.lint.per-file-ignores]
# F403 `from larray import *` used; unable to detect undefined names
# F405 `abc` may be undefined, or defined from star imports
"doc/source/tutorial/*.ipynb" = ["F403", "F405"]