Skip to content

Move pytest options to pyproject.toml#1279

Merged
mhucka merged 11 commits into
quantumlib:mainfrom
mhucka:move-pytest-options-to-pyproject
May 4, 2026
Merged

Move pytest options to pyproject.toml#1279
mhucka merged 11 commits into
quantumlib:mainfrom
mhucka:move-pytest-options-to-pyproject

Conversation

@mhucka
Copy link
Copy Markdown
Contributor

@mhucka mhucka commented Apr 23, 2026

In addition to being the more modern approach, this lets us start to consolidate tool options into a single well-known location, and also lets us simplify the check scripts.

One of the PRs that will resolve #1268.

mhucka added 3 commits April 23, 2026 19:34
In addition to being the more modern approach, this lets us start to
consolidate tool options into a single well-known locadtion instead of
burying them in a nonstandard location like `dev_tools/conf/`.
Now that the options are in pyproject.toml, the explicit argument is no
longer necessary.
@mhucka
Copy link
Copy Markdown
Contributor Author

mhucka commented Apr 23, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the pytest configuration from a standalone dev_tools/conf/pytest.ini file into the pyproject.toml file under the [tool.pytest.ini_options] section. Correspondingly, the check/pytest script has been updated to remove the explicit configuration file flag. I have no feedback to provide.

@mhucka mhucka marked this pull request as ready for review April 23, 2026 19:56
@mhucka mhucka requested review from fdmalone and mpharrigan April 23, 2026 19:57
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the pytest configuration from a standalone .ini file to the pyproject.toml file. Specifically, it moves test markers and warning filters to the [tool.pytest.ini_options] section and updates the check/pytest script to remove the explicit configuration file flag, allowing pytest to use the default configuration discovery. I have no feedback to provide.

@mhucka mhucka enabled auto-merge April 23, 2026 21:07
@mhucka mhucka added area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics area/health Involves code and/or project health labels Apr 23, 2026
@mhucka mhucka requested a review from pavoljuhas April 27, 2026 22:10
Copy link
Copy Markdown
Contributor

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Please fix the omit list in pyproject.toml before submitting.

Otherwise LGTM.

Comment thread pyproject.toml Outdated
@mhucka mhucka added this pull request to the merge queue May 1, 2026
@pavoljuhas pavoljuhas removed this pull request from the merge queue due to a manual request May 1, 2026
@mhucka mhucka enabled auto-merge May 4, 2026 05:46
@mhucka mhucka added this pull request to the merge queue May 4, 2026
Merged via the queue into quantumlib:main with commit 74e6ba8 May 4, 2026
18 checks passed
@mhucka mhucka deleted the move-pytest-options-to-pyproject branch May 4, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics area/health Involves code and/or project health

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move tool configuration settings into pyproject.toml

2 participants