Skip to content

Handle other configuration file formats for coverage#415

Merged
nathanjmcdougall merged 4 commits intomainfrom
221-properly-handle-coverage-configuration-files
Mar 28, 2025
Merged

Handle other configuration file formats for coverage#415
nathanjmcdougall merged 4 commits intomainfrom
221-properly-handle-coverage-configuration-files

Conversation

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator

@nathanjmcdougall nathanjmcdougall commented Mar 28, 2025

I also needed to add list support for INI files for #402

@nathanjmcdougall nathanjmcdougall linked an issue Mar 28, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends support for handling additional configuration file formats for coverage and adds support for list values in INI files. Key changes include:

  • Adding new tests for list operations in TOML and INI file managers.
  • Introducing new file manager classes (CoverageRCManager and ToxINIManager) and updating the configuration specification in the core tool.
  • Implementing list extension and removal functionality in INI file I/O with detailed error messages.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/usethis/integrations/file/toml/test_io.py Adds tests for list operations and error handling in TOML file management.
tests/usethis/_core/test_core_tool.py Adds tests to verify content written to .coveragerc and tox.ini files.
src/usethis/_tool.py Updates configuration specifications to support new file managers.
src/usethis/integrations/file/ini/io.py Implements list extension and removal in INI file handling.
src/usethis/_config_file.py Integrates new INI file manager classes into the files manager pipeline.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 28, 2025

CodSpeed Performance Report

Merging #415 will not alter performance

Comparing 221-properly-handle-coverage-configuration-files (ab7b066) with main (0f36310)

Summary

✅ 1 untouched benchmarks

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.07%. Comparing base (0f36310) to head (ab7b066).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #415      +/-   ##
==========================================
+ Coverage   98.02%   98.07%   +0.04%     
==========================================
  Files          73       73              
  Lines        3350     3420      +70     
==========================================
+ Hits         3284     3354      +70     
  Misses         66       66              

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

@nathanjmcdougall nathanjmcdougall merged commit d15467a into main Mar 28, 2025
15 checks passed
@nathanjmcdougall nathanjmcdougall deleted the 221-properly-handle-coverage-configuration-files branch March 28, 2025 05:54
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.

Properly handle coverage configuration files

3 participants