Metadata-Version: 2.0
Name: flake8-commas
Version: 0.5.1
Summary: Flake8 lint for trailing commas.
Home-page: https://github.com/flake8-commas/flake8-commas/
Author: Thomas Grainger
Author-email: flake8-commas@graingert.co.uk
License: UNKNOWN
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Framework :: Flake8
Requires-Dist: flake8 (<4.0.0,>=2)

Flake8 Extension to enforce trailing commas.
============================================

Usage
-----

If you are using flake8 it's as easy as:

.. code:: shell

    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+ |
+------+---------------------------------------+
| C816 | missing trailing comma in Python 3.6+ |
+------+---------------------------------------+
| C819 | trailing comma prohibited             |
+------+---------------------------------------+


0.5.1 (2018-01-02)
------------------

- Refactor single/multi tuple/subscript to simply count commas in all cases.
- Prohibit trailing commas in lambda parameter lists.
- Fix a missing trailing comma false positive in subcripts with slices.
- Fix a prohibited trailing comma false positve in subscripts with slices.
- All (`Issue #48 <https://github.com/flake8-commas/flake8-commas/pull/48>`_)


0.5.0 (2018-01-02)
------------------

- Remove EOL Python 3.3.
  (`Issue #47 <https://github.com/flake8-commas/flake8-commas/pull/47>`_)
- Prohibit trailing commas where there is no following new line
  (or forming a single element tuple).
  (`Issue #46 <https://github.com/flake8-commas/flake8-commas/pull/46>`_)


0.4.3 (2017-04-25)
------------------

- Enforce trailing commas in subscript tuples and slices again.
  Regression from 0.4.2
  (`Issue #42 <https://github.com/flake8-commas/flake8-commas/pull/42>`_)


0.4.2 (2017-04-18)
------------------

- Prevent lambda params in a parenth form enforcing a trailing comma.
  (`Issue #41 <https://github.com/flake8-commas/flake8-commas/pull/41>`_)
- Fix issue preventing execution on Python 2 with Flake8 3.
  (`Issue #35 <https://github.com/flake8-commas/flake8-commas/issues/35>`_)
- Allow bare wrapped subscript notation access.
  (`Issue #39 <https://github.com/flake8-commas/flake8-commas/pull/39>`_)
- Don't require comma in assert statement with parenth form.
  (`Issue #37 <https://github.com/flake8-commas/flake8-commas/pull/37>`_)


0.4.1 (2017-01-18)
------------------

- Add the framework flake8 trove classifier.


0.4.0 (2017-01-18)
------------------

- Support flake8 3.x.x.
  (`Issue #20 <https://github.com/flake8-commas/flake8-commas/issue/20>`_)
- No trailing comma after any function def with unpack.
- support Python 3.6 `issue9232 <https://bugs.python.org/issue9232>`_
  trailing commas.
  (`Issue #33 <https://github.com/flake8-commas/flake8-commas/pull/33>`_)


0.3.1 (2017-01-18)
------------------

- Also parse unpacks with literals.
  (`Issue #30 <https://github.com/flake8-commas/flake8-commas/issue/30>`_)


0.3.0 (2017-01-16)
------------------

- If there is a comment after the last item, do not report an error.
  (`Issue #18 <https://github.com/flake8-commas/flake8-commas/issue/18>`_)
- If there is an empty, tuple, list, dict, or function, do not report an error.
  (`Issue #17 <https://github.com/flake8-commas/flake8-commas/issue/17>`_)
- Support PEP 3132 Python 3.5+ extended unpacking.
  (`Issue #26 <https://github.com/flake8-commas/flake8-commas/issue/26>`_)
- `*args` should not require a trailing comma.
  (`Issue #27 <https://github.com/flake8-commas/flake8-commas/issue/27>`_)


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


