Skip to content

Remove missing coverage config reference from pytest defaults#2243

Open
Ajeem-git wants to merge 1 commit into
sktime:mainfrom
Ajeem-git:issue-2223-coveragerc-config
Open

Remove missing coverage config reference from pytest defaults#2243
Ajeem-git wants to merge 1 commit into
sktime:mainfrom
Ajeem-git:issue-2223-coveragerc-config

Conversation

@Ajeem-git
Copy link
Copy Markdown

Summary: Fix the default pytest configuration so contributors can run tests in a clean clone without a missing .coveragerc error.

What changed:

  • Removed --cov-config=.coveragerc from tool.pytest.ini_options.addopts in pyproject.toml.

Why:
The repository does not include a .coveragerc file, but pytest was configured to require it by default. Coverage reporting is already configured in pyproject.toml, so the extra flag was unnecessary and caused default pytest invocations to fail.

Verification:

  • Parsed pyproject.toml with Python tomllib after the change.
  • Confirmed that pytest addopts no longer contains --cov-config=.coveragerc.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@af9b14f). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2243   +/-   ##
=======================================
  Coverage        ?   86.71%           
=======================================
  Files           ?      166           
  Lines           ?     9761           
  Branches        ?        0           
=======================================
  Hits            ?     8464           
  Misses          ?     1297           
  Partials        ?        0           
Flag Coverage Δ
cpu 86.71% <ø> (?)
pytest 86.71% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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