summaryrefslogtreecommitdiff
path: root/testsuite/E72.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge pull request #1041 from ↵Anthony Sottile2022-07-301-6/+3
| | | | | | | asfaltboy/issue-830-e721-types-regex-incorrect" This reverts commit 8b5c964321776b2fe8dfd25f4f18db0ffbdbd281, reversing changes made to 9777ac5a8ea1ae14e70bfb27063e2e7c0daa06e3.
* fix regex bug for E721Anthony Sottile2021-12-271-0/+5
|
* Correct test assertions for E721Pavel Savchenko2021-12-121-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 casePavel Savchenko2021-12-121-0/+5
| | | | | | | | | | 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
* Fix E721 false positiveAnthony Sottile2019-03-011-0/+3
|
* warn about bare except clauseŁukasz Rogalski2016-12-281-0/+28
|
* Improve the test framework to count the errors, motivated by issue #237Florent Xicluna2014-03-241-1/+1
|
* Add tests for the E721 checkFlorent Xicluna2013-02-241-0/+24
|
* Add checks E711, E712 and E721. Closes #46 and #47.Florent Xicluna2012-05-281-0/+27