Skip to content

prevent lambda params in a parenth form enforcing a trailing comma - #41

Merged
graingert merged 1 commit into
masterfrom
lambda-parameter-list-does-not-create-tuple
Apr 18, 2017
Merged

graingert merged 1 commit into
masterfrom
lambda-parameter-list-does-not-create-tuple

Conversation

@graingert

Copy link
Copy Markdown
Member

No description provided.

@graingert
graingert force-pushed the lambda-parameter-list-does-not-create-tuple branch 3 times, most recently from deafc35 to b9e58a6 Compare April 18, 2017 09:33
@graingert
graingert force-pushed the lambda-parameter-list-does-not-create-tuple branch from b9e58a6 to 4fc549c Compare April 18, 2017 09:40
@graingert graingert changed the title lambda parameter list should not create tuple prevent lambda params in a parenth form enforcing a trailing comma Apr 18, 2017
@graingert
graingert merged commit 362e197 into master Apr 18, 2017
@graingert
graingert deleted the lambda-parameter-list-does-not-create-tuple branch April 18, 2017 09:54
bors Bot referenced this pull request in duckinator/emanate Jan 9, 2020
79: Pin flake8-commas to latest version 2.0.0 r=duckinator a=pyup-bot


This PR pins [flake8-commas](https://pypi.org/project/flake8-commas) to the latest release **2.0.0**.



<details>
  <summary>Changelog</summary>
  
  
   ### 2.0.0
   ```
   ------------------

- Hide ._base from flake8 --version.
  (`Issue 45 &lt;https://github.com/PyCQA/flake8-commas/issue/45&gt;`_)
- Update URL to https://github.com/PyCQA/flake8-commas/.
  (`Issue 51 &lt;https://github.com/PyCQA/flake8-commas/pull/51&gt;`_)
- Add check for trailing commas on bare tuples - C818, thanks to
  `Chris AtLee &lt;https://github.com/catlee&gt;`_ and
  `Arkadiusz Adamski &lt;https://github.com/ar4s/flake8_tuple&gt;`_
  (`PR 52 &lt;https://github.com/PyCQA/flake8-commas/pull/52&gt;`_)
   ```
   
  
  
   ### 1.0.0
   ```
   ------------------

- No changes from 0.5.1, just releasing the first major version.
   ```
   
  
  
   ### 0.5.1
   ```
   ------------------

- 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 &lt;https://github.com/flake8-commas/flake8-commas/pull/48&gt;`_)
   ```
   
  
  
   ### 0.5.0
   ```
   ------------------

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

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

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

- Add the framework flake8 trove classifier.
   ```
   
  
  
   ### 0.4.0
   ```
   ------------------

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

- Also parse unpacks with literals.
  (`Issue 30 &lt;https://github.com/flake8-commas/flake8-commas/issue/30&gt;`_)
   ```
   
  
  
   ### 0.3.0
   ```
   ------------------

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

- First version of flake8-commas with changelog
- Fix HTML readme render on PyPI.
- Support various parenth_form edge cases.
- Merge from flake8-trailing-commas
   ```
   
  
  
   ### 0.1.3
   ```
   ------------------

- Nothing changed yet.
   ```
   
  
  
   ### 0.1.2
   ```
   ------------------

- Fix HTML readme render on PyPI.
   ```
   
  
  
   ### 0.1.1
   ```
   ------------------

- Support various parenth_form edge cases.
   ```
   
  
  
   ### 0.1.0
   ```
   ------------------

- First version of flake8-trailing-commas that can be installed from PyPI
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/flake8-commas
  - Changelog: https://pyup.io/changelogs/flake8-commas/
  - Repo: https://github.com/PyCQA/flake8-commas/
</details>



Co-authored-by: pyup-bot <github-bot@pyup.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant