Skip to content

Commit 606cc69

Browse files
Use pyproject.toml (#750)
1 parent ebdda15 commit 606cc69

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SSH_TARGET_DIR=
1616

1717
SHELL := /bin/bash
1818

19-
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck zip check-rsync-env
19+
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck zip check-rsync-env test
2020

2121
all: html-noplot
2222

ruff.toml renamed to pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
[tool.pytest.ini_options]
2+
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
3+
filterwarnings = [
4+
"error",
5+
"ignore:FigureCanvasAgg is non-interactive:UserWarning",
6+
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning",
7+
"ignore:'scipy.sparse.linalg.cg' keyword argument:DeprecationWarning",
8+
]
9+
addopts = "--ignore=advanced/advanced_numpy/examples/myobject_test.py --ignore=advanced/interfacing_with_c/ctypes_numpy/test_cos_doubles.py --ignore=advanced/interfacing_with_c/cython_numpy/test_cos_doubles.py --ignore=advanced/interfacing_with_c/numpy_c_api/test_cos_module_np.py --ignore=advanced/interfacing_with_c/numpy_shared/test_cos_doubles.py --ignore=advanced/interfacing_with_c/swig_numpy/test_cos_doubles.py --ignore=intro/scipy/examples/plot_t_test.py"
10+
11+
[tool.ruff]
112
target-version = "py310"
213

3-
[lint]
14+
[tool.ruff.lint]
415
select = [
516
"B", # flake8-bugbear
617
"C4", # flake8-comprehensions
@@ -46,5 +57,5 @@ ignore = [
4657
"SIM115" # Use context handler for opening files
4758
]
4859

49-
[format]
60+
[tool.ruff.format]
5061
docstring-code-format = true

pytest.ini

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)