Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Merge pull request #1041 from ↵ | Anthony Sottile | 2022-07-30 | 1 | -6/+3 |
| | | | | | | | asfaltboy/issue-830-e721-types-regex-incorrect" This reverts commit 8b5c964321776b2fe8dfd25f4f18db0ffbdbd281, reversing changes made to 9777ac5a8ea1ae14e70bfb27063e2e7c0daa06e3. | ||||
* | Merge pull request #1070 from PyCQA/py311 | Anthony Sottile | 2022-06-14 | 1 | -0/+23 |
|\ | | | | | add python3.11 support (except* and a[*b]) | ||||
| * | add python3.11 support (except* and a[*b]) | Anthony Sottile | 2022-05-16 | 1 | -0/+23 |
| | | |||||
* | | fix IndexError regression with E275 | Anthony Sottile | 2022-05-30 | 1 | -0/+3 |
|/ | |||||
* | Generalize E275 to require space after all keywords, not just "import". | Antony Lee | 2022-04-17 | 3 | -6/+11 |
| | |||||
* | fix regex bug for E721 | Anthony Sottile | 2021-12-27 | 1 | -0/+5 |
| | |||||
* | Remove lingering py2 code | Danny Sepler | 2021-12-26 | 2 | -19/+1 |
| | |||||
* | Remove unused module | Pavel Savchenko | 2021-12-13 | 1 | -7/+0 |
| | |||||
* | Correct test assertions for E721 | Pavel Savchenko | 2021-12-12 | 1 | -3/+1 |
| | | | | | | | | | * `type(a) is type(b)` should still fail * same for `type(a) != type(b) or type(a) == type(ccc)` * We cannot assume `res == types.IntType` is wrong as the identity of the objects is not known at check time, either way it shouldn't be a E721 as it doesn't involve type(...) function as described in PEP8 | ||||
* | Add a failing test for a custom types module case | Pavel Savchenko | 2021-12-12 | 2 | -0/+12 |
| | | | | | | | | | | Any `types.*Type*` matches incorrectly as a `type(...)` comparison; the regex `COMPARE_TYPE_REGEX` seems a bit too complicated for what should be a simple comparison case. Ref: https://github.com/PyCQA/pycodestyle/blob/main/pycodestyle.py#L147-L148 This reproduces the case in #830 | ||||
* | Properly warn for E262 with non breaking whitespaces | Pierre Sassoulas | 2021-11-09 | 1 | -0/+7 |
| | | | | Closes #1034 | ||||
* | Emit E221-E224 for walrus op | Marc Mueller | 2021-10-13 | 1 | -0/+11 |
| | |||||
* | add example cases for incorrect E275 from reverted patch | Anthony Sottile | 2021-10-05 | 2 | -0/+4 |
| | |||||
* | Revert "Merge pull request #990 from cdce8p/whitespace-match-case" | Anthony Sottile | 2021-10-05 | 1 | -18/+0 |
| | | | | | This reverts commit 0f079a061590217515421fc337df8dbf3563fed5, reversing changes made to 3d0ac73d8045b5fa771dbbf594ca0b9a4e581e15. | ||||
* | Issue #588: E201: detect tabs as whitespace | Florian Best | 2021-10-05 | 1 | -0/+23 |
| | |||||
* | Merge pull request #1003 from cdce8p/e225-star-pattern | Anthony Sottile | 2021-10-05 | 1 | -0/+15 |
|\ | | | | | Fix false-positive with star pattern | ||||
| * | Fix false-positive with star pattern | Marc Mueller | 2021-07-09 | 1 | -0/+15 |
| | | |||||
* | | Allow __all__ to be typedissue/1018 | Ian Stapleton Cordasco | 2021-10-01 | 1 | -0/+14 |
| | | | | | | | | Closes gh-1018 | ||||
* | | Fix E225 for lambdas | Zac-HD | 2021-09-13 | 1 | -0/+3 |
|/ | |||||
* | Moved to existing check | Marc Mueller | 2021-05-03 | 1 | -7/+0 |
| | |||||
* | Add whitespace checks for match and case | Marc Mueller | 2021-05-03 | 2 | -0/+25 |
| | |||||
* | Fix testsuite | Marc Mueller | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | Changes after review | Marc Mueller | 2021-05-02 | 1 | -4/+1 |
| | |||||
* | Fix false-positive E211 with match and case | Marc Mueller | 2021-05-02 | 1 | -0/+12 |
| | |||||
* | detect multiple E712 in a line | Anthony Sottile | 2021-04-02 | 1 | -0/+2 |
| | |||||
* | use tokenize.open to avoid incorrect line endings at beginning of file | Anthony Sottile | 2021-01-07 | 1 | -0/+3 |
| | |||||
* | Support for space indents with size other than 4 | Jason Ansel | 2020-11-18 | 1 | -0/+49 |
| | | | | This is an updated revision of pull requests #206 and #524 | ||||
* | use github actions instead of travis-ci | Anthony Sottile | 2020-11-05 | 1 | -6/+8 |
| | |||||
* | Fix tests to handle paths in Windows. NormalizePath works properly but the ↵ | JPeterMugaas | 2020-11-04 | 2 | -2/+2 |
| | | | | tests would still fail because NormalizePath would NOT work as the test results expected. | ||||
* | fix skipping of physical checks when file does not end in newline | Anthony Sottile | 2020-09-11 | 2 | -1/+6 |
| | |||||
* | Merge pull request #931 from suzil/fix/767/chained-is-not-E714 | Ian Stapleton Cordasco | 2020-05-08 | 1 | -0/+9 |
|\ | | | | | E714: fix chained `is not` | ||||
| * | Handle | Susannah Klaneček | 2020-05-01 | 1 | -0/+3 |
| | | |||||
| * | E714: fix chained is not | Susannah Klaneček | 2020-05-01 | 1 | -0/+6 |
| | | | | | | | | Closes #767 | ||||
* | | Merge pull request #927 from asottile/allow_typing_one_liners_again | Ian Stapleton Cordasco | 2020-05-08 | 1 | -0/+26 |
|\ \ | |/ |/| | re-allow decorated one-liners | ||||
| * | re-allow decorated one-liners | Anthony Sottile | 2020-04-27 | 1 | -0/+26 |
| | | |||||
* | | E306: fix detection inside `async def`E306_async_def | Anthony Sottile | 2020-04-28 | 1 | -0/+5 |
|/ | |||||
* | Instrument code coverage | Anthony Sottile | 2020-03-24 | 2 | -64/+28 |
| | |||||
* | Merge pull request #918 from asottile/only_positional | Anthony Sottile | 2020-03-24 | 1 | -1/+13 |
|\ | | | | | Fix E225 for PEP 570 all positional-only arguments | ||||
| * | Fix E225 for PEP 570 all positional-only arguments | Anthony Sottile | 2020-03-23 | 1 | -1/+13 |
| | | |||||
* | | Allow N-and-fewer blank lines before the first top level thing | Anthony Sottile | 2020-03-23 | 3 | -8/+11 |
|/ | |||||
* | Merge pull request #913 from anntzer/afteronelinerblock | Anthony Sottile | 2020-03-23 | 1 | -0/+4 |
|\ | | | | | Correctly allow *two* blank lines after a block of one-liners. | ||||
| * | Correctly allow *two* blank lines after a block of one-liners. | Antony Lee | 2020-02-26 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously ``` def oneliner(): pass def otheroneliner(): pass def really_long_func(): with_some_contents ``` would raise an "E302: expected 2 blank lines, found zero" at the last line of the one liner. Ultimately, this is due to `expand_indent` being passed a line whose contents are just a newline and nothing else, and `expand_indent` thinking that the line is indented by 1 character (the newline), which is wrong. Fix that by just stripping the newline, and modify a test to cover this case. | ||||
* | | Support visual indent of continuation lines after with/assert/raise. | Antony Lee | 2020-02-26 | 2 | -1/+43 |
|/ | | | | | "with" is likely the most common case, and this indentation is explicitly given as example by PEP8 (under "maximum line length"). | ||||
* | Merge pull request #897 from sobolevn/issue-768 | Anthony Sottile | 2020-02-19 | 1 | -0/+5 |
|\ | | | | | Adds matmul operator support, fixes #768 | ||||
| * | Adds matmul operator support, fixes #768 | sobolevn | 2019-12-05 | 1 | -0/+5 |
| | | |||||
* | | Merge branch 'master' into master | Nikita Serba | 2020-01-22 | 3 | -0/+34 |
|\ \ | |/ | |||||
| * | Merge pull request #879 from FichteForks/pr/pep-572 | Ian Stapleton Cordasco | 2019-10-21 | 1 | -0/+12 |
| |\ | | | | | | | Add support for assignment expressions | ||||
| | * | Add support for assignment expressions | FichteFoll | 2019-07-31 | 1 | -0/+12 |
| | | | | | | | | | | | | | | | | | | Introduced in Python 3.8 with PEP-572. Refer to https://www.python.org/dev/peps/pep-0572. | ||||
| * | | Merge pull request #834 from EricCousineau-TRI/issue/833 | Ian Stapleton Cordasco | 2019-09-25 | 1 | -0/+15 |
| |\ \ | | |/ | |/| | E402: Add "with" statement to allowed keywords | ||||
| | * | E402: Add "elif" statement to allowed keywords | Eric Cousineau | 2019-09-25 | 1 | -0/+4 |
| | | |