trio icon indicating copy to clipboard operation
trio copied to clipboard

Enable ruff's Perflint rule.

Open CoolCat467 opened this issue 1 year ago • 3 comments

This pull request enables ruff's perflint rule and handles the associated fixes or ignores.

CoolCat467 avatar Mar 11 '24 02:03 CoolCat467

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.63%. Comparing base (7dbbac9) to head (41ee2a8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2969      +/-   ##
==========================================
- Coverage   99.63%   99.63%   -0.01%     
==========================================
  Files         117      117              
  Lines       17593    17578      -15     
  Branches     3173     3172       -1     
==========================================
- Hits        17528    17513      -15     
  Misses         46       46              
  Partials       19       19              
Files Coverage Δ
src/trio/_core/_tests/test_run.py 100.00% <100.00%> (ø)
src/trio/_subprocess.py 100.00% <100.00%> (ø)
src/trio/_tests/test_channel.py 100.00% <100.00%> (ø)
src/trio/_tests/test_exports.py 99.61% <100.00%> (ø)
src/trio/_tests/test_file_io.py 100.00% <100.00%> (ø)
src/trio/_tests/test_scheduler_determinism.py 100.00% <100.00%> (ø)
src/trio/_tests/test_socket.py 100.00% <100.00%> (ø)
src/trio/_tools/gen_exports.py 99.15% <100.00%> (-0.02%) :arrow_down:
src/trio/_unix_pipes.py 100.00% <100.00%> (ø)

codecov[bot] avatar Mar 11 '24 02:03 codecov[bot]

Updating branch to see if any changes with new ruff versions

CoolCat467 avatar May 07 '24 03:05 CoolCat467

pre-commit.ci autofix

CoolCat467 avatar May 07 '24 03:05 CoolCat467

Given that https://github.com/astral-sh/ruff/issues/11316 is still open, I am thinking of merging this soon unless anyone has any other comments.

CoolCat467 avatar May 20 '24 18:05 CoolCat467