Skip to content

Add ASYNC233 pathlib blocking call rule#467

Open
paranoa233 wants to merge 3 commits into
python-trio:mainfrom
paranoa233:fix-pathlib-blocking-async233
Open

Add ASYNC233 pathlib blocking call rule#467
paranoa233 wants to merge 3 commits into
python-trio:mainfrom
paranoa233:fix-pathlib-blocking-async233

Conversation

@paranoa233

Copy link
Copy Markdown

Closes #396.

Summary

  • add ASYNC233 for blocking pathlib.Path I/O methods in async functions
  • track pathlib Path values from annotations and common constructors
  • document the new rule and add changelog coverage

Test Plan

  • python -m pytest tests/test_flake8_async.py -k "ASYNC233 or ASYNC212"
  • python -m pytest tests/test_messages_documented.py tests/test_all_visitors_imported.py
  • python -m ruff check flake8_async tests docs

Full python -m pytest on Windows: 1180 passed, 170 skipped; 2 existing CLI-output assertions fail because local subprocess output uses CRLF/path separators.

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.

New rule: ASYNC233 for blocking pathlib methods

1 participant