Skip to main content

Ensure a consistent format for multiline containers.

Project description

https://travis-ci.org/jsfehler/flake8-multiline-containers.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-multiline-containers-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distributions

flake8_multiline_containers-0.0.1-py3.6.egg (6.1 kB view details)

Uploaded Source

File details

Details for the file flake8-multiline-containers-0.0.1.tar.gz.

File metadata

  • Download URL: flake8-multiline-containers-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for flake8-multiline-containers-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af5004c85fafd40ac7e82e40dbaf25c1e8ef030ab0a8b052de2d3458e7179500
MD5 4c7ea2c7121eff8dd3f3e03a26d05e2f
BLAKE2b-256 82223c1270393d1716f8c49a524a4246f28f9b12ddf08bff7cc8c36740c55dd9

See more details on using hashes here.

Provenance

File details

Details for the file flake8_multiline_containers-0.0.1-py3.6.egg.

File metadata

  • Download URL: flake8_multiline_containers-0.0.1-py3.6.egg
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for flake8_multiline_containers-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 3cb2178469858bb5067a2595a0effb878432e395bb2d0981cd47e92e20600424
MD5 fa45ab616c81effa2e2954cc519f6656
BLAKE2b-256 4a06e92d8a075a1a63be7c681bcaba1ce46a7389c1c4dc050ab6e996daad690e

See more details on using hashes here.

Provenance

File details

Details for the file flake8_multiline_containers-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_multiline_containers-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for flake8_multiline_containers-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8e92956bd4a00c0b0d88a09d3676406da4a13aeff97c2af834c8c7f0ebfbc5
MD5 7bbe1a6a0143a51ed2548b34a37d05ce
BLAKE2b-256 b078182df1f841f7e353b08f14e9b1bf4451f1efca3a57cb492c547315a3cdbe

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page