lensvol / pybetter

Tool for fixing trivial problems with your code.
MIT License
62 stars 6 forks source link

Add new fixer for 'not A is B' -> 'A is not B' situation #113

Closed lensvol closed 2 years ago

lensvol commented 2 years ago

Closes #110.

Thanks to @rs2 for submitting the idea!

codecov[bot] commented 2 years ago

Codecov Report

Merging #113 (f70abf5) into master (a0f2144) will increase coverage by 0.97%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   78.22%   79.19%   +0.97%     
==========================================
  Files          14       15       +1     
  Lines         427      447      +20     
==========================================
+ Hits          334      354      +20     
  Misses         93       93              
Impacted Files Coverage Δ
pybetter/cli.py 36.36% <ø> (ø)
pybetter/improvements.py 100.00% <100.00%> (ø)
pybetter/transformers/not_is.py 100.00% <100.00%> (ø)
pybetter/transformers/parenthesized_return.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a0f2144...f70abf5. Read the comment docs.