Skip to content

Commit 2fd1d83

Browse files
committed
MAINT: moved pytest configuration to pyproject.toml
it requires pytest 6
1 parent 9bf0966 commit 2fd1d83

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ dependencies:
88
- qtpy >=2
99
- pytables
1010
- matplotlib
11-
- pytest>=3.5
11+
- pytest >=6 # for configuring pytest via pyproject.toml

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
[tool.pytest.ini_options]
2+
minversion = "6.0"
3+
testpaths = [
4+
"larray_editor"
5+
]
6+
addopts = [
7+
"-v",
8+
"--doctest-modules",
9+
# this test is not automation-friendly
10+
"--ignore=larray_editor/tests/test_api_larray.py",
11+
# this test cannot be run with pytest (must be run from within PyCharm)
12+
"--ignore=larray_editor/tests/run_with_console.py",
13+
# "--cov",
14+
]
15+
16+
filterwarnings = [
17+
# turn warnings into errors (unless they are explicitly handled in tests or ignored here)
18+
"error",
19+
]
20+
21+
122
[tool.ruff]
223
# Enable Pyflakes `E` and `F` codes by default.
324
select = ["E", "F"]

setup.cfg

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

0 commit comments

Comments
 (0)