Skip to content

Conversation

@azeinela
Copy link
Collaborator

Summary

  • add a detect-non-ascii-characters hook that strips or reports bytes outside printable ASCII + whitespace, with options for custom include ranges, extra allowed chars, file globs, and check-only mode
  • document the new hook and register its console script entry
  • add a fixture and comprehensive tests covering multibyte characters, filtering, globbing, and combined flag behaviors

Testing

  • python -m pytest tests/non_ascii_guard_test.py

Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

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

We need to discuss this when Trevor gets back

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.

2 participants