Skip to content

Conversation

sdimitro
Copy link
Contributor

= Before The Patch

We'd get the following error from our pylint action:

************* Module sdb.pipeline
sdb/pipeline.py:132:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
************* Module sdb.commands.zfs.histograms
sdb/commands/zfs/histograms.py:136:8: R1731: Consider using 'max_count = max(max_count, HISTOGRAM_WIDTH_MAX)' instead of unnecessary if block (consider-using-max-builtin)

= After the Patch

Pylint runs fine with no errors

= Before The Patch

We'd get the following error from our `pylint` action:
```
************* Module sdb.pipeline
sdb/pipeline.py:132:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
************* Module sdb.commands.zfs.histograms
sdb/commands/zfs/histograms.py:136:8: R1731: Consider using 'max_count = max(max_count, HISTOGRAM_WIDTH_MAX)' instead of unnecessary if block (consider-using-max-builtin)
```

= After the Patch

Pylint runs fine with no errors
@codecov-commenter
Copy link

Codecov Report

Merging #278 (7a9067b) into master (d0cb398) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #278      +/-   ##
==========================================
- Coverage   87.69%   87.69%   -0.01%     
==========================================
  Files          63       63              
  Lines        2577     2576       -1     
==========================================
- Hits         2260     2259       -1     
  Misses        317      317              
Impacted Files Coverage Δ
sdb/pipeline.py 82.35% <ø> (ø)
sdb/commands/zfs/histograms.py 98.52% <100.00%> (-0.03%) ⬇️

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 d0cb398...7a9067b. Read the comment docs.

Copy link
Contributor

@mmaybee mmaybee left a comment

Choose a reason for hiding this comment

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

Sigh, pylint seems a bit pedantic to me sometimes.

@sdimitro sdimitro merged commit 3e6c69a into delphix:master Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants