Flake8 lint for trailing commas.
Project description
Usage
If you are using flake8 it’s as easy as:
pip install flake8-commas
Now you can avoid those annoying merge conflicts on dictionary and list diffs.
Errors
Different versions of python require commas in different places. Ignore the errors for languages you don’t use in your flake8 config:
Code |
message |
---|---|
C812 |
missing trailing comma |
C813 |
missing trailing comma in Python 3 |
C814 |
missing trailing comma in Python 2 |
C815 |
missing trailing comma in Python 3.5+ |
0.3.0 (2017-01-16)
0.2.0 (2017-01-13)
First version of flake8-commas with changelog
Fix HTML readme render on PyPI.
Support various parenth_form edge cases.
Merge from flake8-trailing-commas
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
flake8-commas-0.3.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for flake8_commas-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9533054959522b15f67cefa88c28958bb65f7db3489bbaa78f24d28139f28e1 |
|
MD5 | ccbbc0d817eae51dd02184c6c77d2e07 |
|
BLAKE2b-256 | 37159c9ef2ee7f6d6f01c1f6e4c9015c625ae638a28adfcf17327febb26bf093 |