summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* add example cases for incorrect E275 from reverted patchAnthony Sottile2021-10-052-0/+4
|
* Revert "Merge pull request #990 from cdce8p/whitespace-match-case"Anthony Sottile2021-10-051-18/+0
| | | | | This reverts commit 0f079a061590217515421fc337df8dbf3563fed5, reversing changes made to 3d0ac73d8045b5fa771dbbf594ca0b9a4e581e15.
* Issue #588: E201: detect tabs as whitespaceFlorian Best2021-10-051-0/+23
|
* Merge pull request #1003 from cdce8p/e225-star-patternAnthony Sottile2021-10-051-0/+15
|\ | | | | Fix false-positive with star pattern
| * Fix false-positive with star patternMarc Mueller2021-07-091-0/+15
| |
* | Allow __all__ to be typedissue/1018Ian Stapleton Cordasco2021-10-011-0/+14
| | | | | | | | Closes gh-1018
* | Fix E225 for lambdasZac-HD2021-09-131-0/+3
|/
* Moved to existing checkMarc Mueller2021-05-031-7/+0
|
* Add whitespace checks for match and caseMarc Mueller2021-05-032-0/+25
|
* Fix testsuiteMarc Mueller2021-05-021-1/+1
|
* Changes after reviewMarc Mueller2021-05-021-4/+1
|
* Fix false-positive E211 with match and caseMarc Mueller2021-05-021-0/+12
|
* detect multiple E712 in a lineAnthony Sottile2021-04-021-0/+2
|
* use tokenize.open to avoid incorrect line endings at beginning of fileAnthony Sottile2021-01-071-0/+3
|
* Support for space indents with size other than 4Jason Ansel2020-11-181-0/+49
| | | | This is an updated revision of pull requests #206 and #524
* use github actions instead of travis-ciAnthony Sottile2020-11-051-6/+8
|
* Fix tests to handle paths in Windows. NormalizePath works properly but the ↵JPeterMugaas2020-11-042-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 newlineAnthony Sottile2020-09-112-1/+6
|
* Merge pull request #931 from suzil/fix/767/chained-is-not-E714Ian Stapleton Cordasco2020-05-081-0/+9
|\ | | | | E714: fix chained `is not`
| * HandleSusannah Klaneček2020-05-011-0/+3
| |
| * E714: fix chained is notSusannah Klaneček2020-05-011-0/+6
| | | | | | | | Closes #767
* | Merge pull request #927 from asottile/allow_typing_one_liners_againIan Stapleton Cordasco2020-05-081-0/+26
|\ \ | |/ |/| re-allow decorated one-liners
| * re-allow decorated one-linersAnthony Sottile2020-04-271-0/+26
| |
* | E306: fix detection inside `async def`E306_async_defAnthony Sottile2020-04-281-0/+5
|/
* Instrument code coverageAnthony Sottile2020-03-242-64/+28
|
* Merge pull request #918 from asottile/only_positionalAnthony Sottile2020-03-241-1/+13
|\ | | | | Fix E225 for PEP 570 all positional-only arguments
| * Fix E225 for PEP 570 all positional-only argumentsAnthony Sottile2020-03-231-1/+13
| |
* | Allow N-and-fewer blank lines before the first top level thingAnthony Sottile2020-03-233-8/+11
|/
* Merge pull request #913 from anntzer/afteronelinerblockAnthony Sottile2020-03-231-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 Lee2020-02-261-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 Lee2020-02-262-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-768Anthony Sottile2020-02-191-0/+5
|\ | | | | Adds matmul operator support, fixes #768
| * Adds matmul operator support, fixes #768sobolevn2019-12-051-0/+5
| |
* | Merge branch 'master' into masterNikita Serba2020-01-223-0/+34
|\ \ | |/
| * Merge pull request #879 from FichteForks/pr/pep-572Ian Stapleton Cordasco2019-10-211-0/+12
| |\ | | | | | | Add support for assignment expressions
| | * Add support for assignment expressionsFichteFoll2019-07-311-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/833Ian Stapleton Cordasco2019-09-251-0/+15
| |\ \ | | |/ | |/| E402: Add "with" statement to allowed keywords
| | * E402: Add "elif" statement to allowed keywordsEric Cousineau2019-09-251-0/+4
| | |
| | * E402: Add "if" statement to allowed keywordsEric Cousineau2019-01-301-0/+5
| | |
| | * E402: Add "with" statement to allowed keywordsEric Cousineau2019-01-301-0/+6
| | |
| * | Ellipsis is not a binary operatorAnthony Sottile2019-07-111-0/+7
| | |
* | | Typo fix (rename python38 to python38.py)Nikita Serba2020-01-221-0/+0
| | |
* | | Create python38Nikita Serba2020-01-221-0/+3
|/ /
* | Fix E302 false negative in presence of decorators.Antony Lee2019-03-261-0/+8
| |
* | Fix E721 false positiveAnthony Sottile2019-03-011-0/+3
| |
* | Check for 'is' and 'in' as wellAdam Johnson2019-02-281-0/+4
| |
* | E225 Check for space around boolean operatorsAdam Johnson2019-02-271-0/+4
| | | | | | | | This was documented in the docstring for `missing_whitespace_around_operator` but not implemented, allowing e.g. `1and 0` to pass. Fixed by adding test case then modifying the check to search for the 'and' and 'or' operators as well.
* | Expect lines to be indented 8 places when tabs are usedJon Dufresne2019-01-316-25/+28
|/ | | | Fixes #836
* Allow W605 to be silenced by noqaAnthony Sottile2019-01-261-0/+4
|
* Add check for over-indented blocksJon Dufresne2019-01-246-29/+33
| | | | | | | | | In a project with all lines indented 4 spaces, I noticed pycodestyle was not catching code that was accidentally indented two levels (8 spaces). The over indentation was unintended and can be caught during static analysis. Fixes #430