Ensure a consistent format for multiline containers.
Project description
A Flake8 plugin to ensure a consistent format for multiline containers.
Rules
Code |
Rule |
---|---|
JS101 |
Multi-line container not broken after opening character |
JS102 |
Multi-line container does not close on same column as opening |
Examples
# Right: Opens and closes on same line
foo = {'a': 'hello', 'b': 'world'}
# Right: Line break after parenthesis, closes on same column as opening
foo = {
'a': 'hello',
'b': 'world',
}
# Right: Line break after parenthesis, closes on same column as opening
foo = [
'hello', 'world',
]
# Wrong: JS101
foo = {'a': 'hello',
'b': 'world',
}
# Wrong: JS101, JS102
foo = {'a': 'hello',
'b': 'world'}
# Wrong: JS101, JS102
foo = {'hello',
'world'
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for flake8-multiline-containers-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af5004c85fafd40ac7e82e40dbaf25c1e8ef030ab0a8b052de2d3458e7179500 |
|
MD5 | 4c7ea2c7121eff8dd3f3e03a26d05e2f |
|
BLAKE2b-256 | 82223c1270393d1716f8c49a524a4246f28f9b12ddf08bff7cc8c36740c55dd9 |
Close
Hashes for flake8_multiline_containers-0.0.1-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb2178469858bb5067a2595a0effb878432e395bb2d0981cd47e92e20600424 |
|
MD5 | fa45ab616c81effa2e2954cc519f6656 |
|
BLAKE2b-256 | 4a06e92d8a075a1a63be7c681bcaba1ce46a7389c1c4dc050ab6e996daad690e |
Close
Hashes for flake8_multiline_containers-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8e92956bd4a00c0b0d88a09d3676406da4a13aeff97c2af834c8c7f0ebfbc5 |
|
MD5 | 7bbe1a6a0143a51ed2548b34a37d05ce |
|
BLAKE2b-256 | b078182df1f841f7e353b08f14e9b1bf4451f1efca3a57cb492c547315a3cdbe |