cytomining / pycytominer

Python package for processing image-based profiling data
https://pycytominer.readthedocs.io
BSD 3-Clause "New" or "Revised" License
78 stars 35 forks source link

refactor: apply bugbears linting checks #388

Open kenibrewer opened 7 months ago

kenibrewer commented 7 months ago

Description

Should be merged after #386

This applies the bugbear set of linting checks and makes appropriate fixes. The most commonly addressed linting failure that was fixed in this PR is B006. In cases where the mutable default was a list, it was replaces with an immutable tuple instead. For mutable dictionaries, the fix instead involved setting the default to None and initializing the default within the function.

What is the nature of your change?

Checklist

Please ensure that all boxes are checked before indicating that a pull request is ready for review.