Skip to content

Black and pylint don't agree on bad-continuation #6

Closed
@evaherrada

Description

@evaherrada

Pylint prefers this:

def enable_tap_detection(
            self,
            *,
            tap_count=1,
            threshold=25,
            long_initial_window=True,
            long_quiet_window=True,
            double_tap_window=TapDuration.DURATION_250_MS
    ):

Black prefers this:

def enable_tap_detection(
        self,
        *,
        tap_count=1,
        threshold=25,
        long_initial_window=True,
        long_quiet_window=True,
        double_tap_window=TapDuration.DURATION_250_MS
    ):

Personally, I think it'd be easier to just do a pylint disable there because the change seems pretty inconsequential, and I'm not sure how one would do a black disable or if it is even a thing.

Main issue:
adafruit/Adafruit_CircuitPython_Bundle#232

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions