Skip to content

fix(#565): Handle OSError#566

Closed
KyleKing wants to merge 3 commits intohukkin:masterfrom
KyleKing:kyle/fix-565
Closed

fix(#565): Handle OSError#566
KyleKing wants to merge 3 commits intohukkin:masterfrom
KyleKing:kyle/fix-565

Conversation

@KyleKing
Copy link
Copy Markdown
Contributor

Fixes: #565

Addresses edge case when incorrectly finding invalid files

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (56b24ef) to head (dd84e83).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #566   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          956       961    +5     
  Branches       169       169           
=========================================
+ Hits           956       961    +5     

☔ 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.

@KyleKing
Copy link
Copy Markdown
Contributor Author

KyleKing commented Dec 30, 2025

@hukkin, this is ready for review

There was an unrelated Flake8 failure from CI, which I've addressed to pass all checks, but can be reverted or addressed with a flake8 ignore if you would prefer

 flake8...................................................................Failed
- hook id: flake8
- exit code: 1

src/mdformat/_cli.py:329:5: B042 Exception class with `__init__` should pass all args to `super().__init__()` to work in edge cases of `pickle` and `copy.copy()`. It should also not take any kwargs.

@KyleKing KyleKing closed this Dec 30, 2025
@KyleKing KyleKing deleted the kyle/fix-565 branch December 30, 2025 15:44
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.

mdformat crashes if it can't find .mdformat.toml

1 participant