Skip to main content

flake8-multiline-containers

PyPI PyPI - Python Version GitHub Updates Build status

A Flake8 plugin to ensure a consistent format for multiline containers.

Installation

Install from pip with:

pip install flake8-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'
      }

Metadata

Release files for flake8-multiline-containers 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-multiline-containers 0.0.19
File Size Uploaded
flake8-multiline-containers-0.0.19.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-multiline-containers 0.0.19
File Interpreter ABI Platform
flake8_multiline_containers-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / flake8-multiline-containers-0.0.19.tar.gz

Download URL flake8-multiline-containers-0.0.19.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c47527f1a2b0a991b876e58a2758e0ecc6b2d10a5fd4ee7740d042722f2f281
BLAKE2b-256 checksum
How to use checksums
41a61e29dbb4f096ea19413ca88b7f1d3d32673a3a3fa48388574b35cb259944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release files / flake8_multiline_containers-0.0.19-py3-none-any.whl

Download URL flake8_multiline_containers-0.0.19-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b684da84b401f42f1ad36f0f90e24b7f49b2691458cb582911fb99d871bb0b2
BLAKE2b-256 checksum
How to use checksums
304bdaf12bc0c6733aa823cd948a2a2b3200ec926016f4ab16845558a960234f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

1 release file

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page