Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no-visual flag to disallow visual indentation #642

Closed
wants to merge 2 commits into from

Conversation

bwhmather
Copy link

@bwhmather bwhmather commented Apr 26, 2017

An proposal for allowing projects to enforce hanging indentation.

Adds a flag which disallows code that is indented to align with the opening of the containing brackets:

def function(argument_1,
            argument_2,
            argument_3):
    pass

It instead requires that the code be indented to a multiple of the indentation size:

def function(
    argument_1,
    argument_2,
):
    pass

This has a similar goal to #632 but is implemented by disabling the cases that accept visual indents, rather than accepting them initially but raising a new error type later.
Should result in cleaner error messages, and does not require a separate pass through the code.

@bwhmather
Copy link
Author

Hi - Is there any interest in this?

@bwhmather bwhmather closed this Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant