Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ repos:
- repo: https://github.com/neutrinoceros/inifix
rev: v6.1.2
hooks:
- id: inifix-validate
args: [--sections=require]
- id: inifix-format
files: ^(test/).*\.(ini)$ # want to skip pytest.ini
args: [--skip-validation]

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
Expand Down
6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

10 changes: 10 additions & 0 deletions pytest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[pytest]
minversion = "9.0"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is mostly informational, as this parameter is used by pytest to check it's compatible at runtime, but only versions 9.0 and newer will even attempt to read a pytest.toml file. Older versions simply ignore it.

markers = [
"default: Test to run by default.",
]
python_files = [
"test_*.py",
]
junit_logging = "system-out"
junit_log_passing_tests = false
2 changes: 0 additions & 2 deletions pytools/pytest.ini

This file was deleted.

5 changes: 2 additions & 3 deletions test/python_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ scipy>=1.2.3
# note that no version of inifix supports Python older than 3.6
inifix>=0.11.2

# To run the test suite, we can use pytest, mostly any version
# 6.0 is the one available on system available on debian-11
pytest >= 6.0
# To run the test suite, we can use pytest
pytest>=9.0
Loading