fix: remove stale self-contained-html pytest config option - #136
Closed
abhihashi wants to merge 2 commits into
Closed
fix: remove stale self-contained-html pytest config option#136abhihashi wants to merge 2 commits into
abhihashi wants to merge 2 commits into
Conversation
ruff 0.16.x expanded its default rule set to include UP (pyupgrade), PIE, and RUF rules not previously enforced, causing CI to fail on every PR. This commit resolves all violations so the lint step passes cleanly. Changes in pyproject.toml: - Add [tool.ruff.lint] with an explicit select and ignore list, pinning the enforced rule set so future ruff upgrades cannot silently add new failures - Ignore E501 (line-too-long) and RUF012 (mutable-class-default) which are either the formatter's responsibility or a pydantic Field() pattern Codebase changes (ruff --fix + manual): - UP006/UP007/UP045: replace deprecated typing generics (List, Dict, Optional, Tuple) with built-in equivalents (list, dict, X | None, tuple) - UP035: remove unused 'from typing import ...' lines - UP015/UP018: remove redundant open() mode args and str() literals - PIE790: remove unnecessary pass in abstract method stubs - RUF100: remove unused noqa directives - E712: replace '== True' comparisons with truthiness checks - W291/W293/W292: remove trailing whitespace and add missing EOF newlines
pytest 9.x treats unknown ini_options as a hard error (exit code 4), causing no tests to be collected. self-contained-html is a pytest-html plugin option but pytest-html is not a declared dependency. Remove the stale option to restore test collection.
abhihashi
force-pushed
the
fix/pytest-unknown-config-self-contained-html
branch
from
August 19, 2026 13:13
5a98667 to
fc9be5f
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pytest 9.xchanged unknown[tool.pytest.ini_options]entries from a warning to a hard error (exit code 4), which causes test collection to abort entirely — no tests run.self-contained-htmlis apytest-htmlplugin option, butpytest-htmlis not a declared dependency of this project. The option has been a no-op since the project was set up and is now actively breaking CI.Change
-self-contained-html = trueVerification
Local collection after the fix: