Skip to content

chore: enable RUF002/RUF003 (ambiguous Unicode characters) #1005

@sergio-sisternes-epam

Description

@sergio-sisternes-epam

Context

PR #999 deferred RUF002 (ambiguous characters in docstrings, 8 violations) and RUF003 (ambiguous characters in comments, 14 violations) to avoid scope creep. These rules align with the repo's cross-platform ASCII encoding convention (.github/instructions/encoding.instructions.md).

Task

  1. Remove "RUF002" and "RUF003" from the ignore list in pyproject.toml
  2. Fix the 22 violations -- most are curly quotes or non-ASCII dashes that crept into docstrings/comments
  3. Run uv run ruff check src/ tests/ to confirm clean
  4. Verify no legitimate Unicode content is broken (e.g., user-facing strings with internationalised text)

Current violations

# To reproduce:
uv run ruff check --select RUF002,RUF003 src/ tests/

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ci-cdGitHub workflows, merge queue, gh-aw integrations, release pipeline.area/testingTest infrastructure, fixtures, e2e harness, coverage.priority/lowAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).tech-debttype/refactorInternal restructure, no behavior change.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions