Skip to content

Move pytest configuration out of an "ini" file, separate inifiles validation from formatting#380

Closed
neutrinoceros wants to merge 2 commits into
idefix-code:masterfrom
neutrinoceros:pytest.toml-2
Closed

Move pytest configuration out of an "ini" file, separate inifiles validation from formatting#380
neutrinoceros wants to merge 2 commits into
idefix-code:masterfrom
neutrinoceros:pytest.toml-2

Conversation

@neutrinoceros
Copy link
Copy Markdown
Collaborator

@neutrinoceros neutrinoceros commented May 15, 2026

Motivation:
keeping the default filename regexp for inifix pre-commit hooks makes it easier for me to continuously verify that I'm not breaking idefix's linting.
In short: this moves back to the .ini extension being unambiguously about idefix/pluto configuration files.

  • move pytest config to pytest.toml
  • separate inifiles validation from formatting

supersedes #379

Comment thread pytest.toml
@@ -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.

@neutrinoceros
Copy link
Copy Markdown
Collaborator Author

Thinking about this some more, there's probably a better solution on my side. I'll keep this as a draft for a couple days but plan to replace it with an upgrade to inifix's pre-commit hook next soon.

@neutrinoceros
Copy link
Copy Markdown
Collaborator Author

xref neutrinoceros/inifix#508

@neutrinoceros
Copy link
Copy Markdown
Collaborator Author

closing in favor of #381

@neutrinoceros neutrinoceros deleted the pytest.toml-2 branch May 18, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant