Skip to content

Enable RUF001 to lint confusable characters#13788

Merged
bryevdv merged 1 commit intobokeh:branch-3.5from
covracer:13667_lint_confusables
Apr 1, 2024
Merged

Enable RUF001 to lint confusable characters#13788
bryevdv merged 1 commit intobokeh:branch-3.5from
covracer:13667_lint_confusables

Conversation

@covracer
Copy link
Contributor

@covracer covracer commented Mar 29, 2024

Characters which look the same but have different underlying codes (homographs) are problematic. Enable Ruff's "confusable" character linter to prevent new code from accidentally including them.

Allow small sigma because of its use in statistics, using the approach suggested by @mattpap #13668 (comment).

Characters which look the same but have different underlying codes (homographs)
are problematic. Enable Ruff's "confusable" character linter to prevent new
code from accidentally including them.

Allow small sigma because of its use in statistics.
@codecov
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.65%. Comparing base (d9a2f7a) to head (96e80c6).

Additional details and impacted files
@@             Coverage Diff             @@
##           branch-3.5   #13788   +/-   ##
===========================================
  Coverage       92.65%   92.65%           
===========================================
  Files             326      326           
  Lines           20734    20734           
===========================================
  Hits            19211    19211           
  Misses           1523     1523           

@mattpap mattpap added status: ready type: task tag: codebase Improvements to code quality without affecting any functionality. labels Mar 30, 2024
@mattpap mattpap added this to the 3.5 milestone Mar 30, 2024
@bryevdv
Copy link
Member

bryevdv commented Apr 1, 2024

Thanks @covracer

@bryevdv bryevdv merged commit e380566 into bokeh:branch-3.5 Apr 1, 2024
@covracer covracer deleted the 13667_lint_confusables branch April 3, 2024 23:57
mattpap pushed a commit that referenced this pull request Apr 10, 2024
Characters which look the same but have different underlying codes (homographs)
are problematic. Enable Ruff's "confusable" character linter to prevent new
code from accidentally including them.

Allow small sigma because of its use in statistics.
@mattpap mattpap modified the milestones: 3.5, 3.4.1 Apr 10, 2024
@mattpap mattpap mentioned this pull request Apr 10, 2024
17 tasks
Chiemezuo pushed a commit to Chiemezuo/bokeh that referenced this pull request Aug 27, 2024
Characters which look the same but have different underlying codes (homographs)
are problematic. Enable Ruff's "confusable" character linter to prevent new
code from accidentally including them.

Allow small sigma because of its use in statistics.
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

reso: completed status: accepted tag: codebase Improvements to code quality without affecting any functionality. type: task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants