-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
73 lines (66 loc) · 2.78 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
[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",
# doctest fails (because the plot method returns a matplotlib axis object,
# which we do not mention in the doctest to make it nicer)
"--deselect=larray/core/array.py::larray.core.array.Array.plot",
# 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 = []
per-file-ignores = {}