Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add nan-comparison checker for NaN comparisons | Or Bahari | 2021-02-18 | 3 | -0/+70 |
| | | | | **After fix whatsnew to 2.7 | ||||
* | Fix issue with nested PEP 604 syntax | Marc Mueller | 2021-02-16 | 5 | -25/+44 |
| | |||||
* | Fix issue with nested PEP 585 syntax | Marc Mueller | 2021-02-16 | 5 | -12/+83 |
| | |||||
* | Move from format() to f-string where it makes sense | Pierre Sassoulas | 2021-02-16 | 8 | -132/+89 |
| | | | | As we do not maintain python 3.5 it permit to simplify some code | ||||
* | Fix pylint warnings | hippo91 | 2021-02-16 | 1 | -1/+0 |
| | |||||
* | Disable TestNoSix | David Gilman | 2021-02-16 | 1 | -3/+1 |
| | | | | | | | At this point there are still a handful of packages that are pulling in six so it is not easy to get a six-free testing environment. Maybe in a few months or a year the community will start its detachment from six and this can come back in. | ||||
* | Remove tests that only run pre-Python 3.6 | David Gilman | 2021-02-16 | 39 | -398/+0 |
| | |||||
* | Re-add accidentally removed py3k unittest | David Gilman | 2021-02-16 | 1 | -0/+23 |
| | |||||
* | Check for lack of six in tox test runs | David Gilman | 2021-02-16 | 1 | -0/+14 |
| | |||||
* | Remove six dependency from test suite | David Gilman | 2021-02-16 | 16 | -64/+55 |
| | |||||
* | Graingert add generated members match against the qualified name (#4092) | Pierre Sassoulas | 2021-02-15 | 3 | -1/+10 |
| | | | | | | | | * Fix #2498: add generated-members match against the qualified name Add test for fully qualified generated-members Co-authored-by: Gauthier Sebaux <gauthier.sebaux@wavestone.com> Co-authored-by: Thomas Grainger <tagrain@gmail.com> | ||||
* | Fix E731 do not assign a lambda expression, use a def | Pierre Sassoulas | 2021-02-15 | 1 | -1/+1 |
| | |||||
* | Fix all E741 ambiguous variable name 'l' | Pierre Sassoulas | 2021-02-15 | 1 | -14/+13 |
| | |||||
* | Fix TypedDict inherit-non-class false-positive Python 3.9+ | Marc Mueller | 2021-02-15 | 2 | -0/+20 |
| | | | | * Closes #1927 | ||||
* | Fix multiple false positives with assignment expressions | Marc Mueller | 2021-02-15 | 3 | -0/+63 |
| | | | | | * Used-before-assignment false positive * Undefined-variable false positive | ||||
* | Add check for alternative union syntax - PEP 604 | Marc Mueller | 2021-02-15 | 8 | -0/+285 |
| | |||||
* | Add support for pep585 with postponed evaulation | Marc Mueller | 2021-02-15 | 8 | -0/+287 |
| | |||||
* | Remove a sys.pypy_version_info that can only fail and unskip a test | Pierre Sassoulas | 2021-02-07 | 1 | -10/+0 |
| | |||||
* | Fix mypy error: os module has no attribute "_name" | Pierre Sassoulas | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | Remove unused and bugged pypy_version_info | Pierre Sassoulas | 2021-02-07 | 1 | -5/+0 |
| | |||||
* | Fix need type annotation for 'CONFIG' | Pierre Sassoulas | 2021-02-07 | 1 | -3/+4 |
| | |||||
* | Remove unnecessary " inside functional test | Pierre Sassoulas | 2021-01-24 | 3 | -4/+4 |
| | | | | Following review see : https://github.com/PyCQA/pylint/pull/4013\#discussion_r561173585 | ||||
* | Fix functional tests for python 3.5 | Pierre Sassoulas | 2021-01-24 | 3 | -4/+4 |
| | |||||
* | Fix functional tests for python 3.6/3.7 | Pierre Sassoulas | 2021-01-24 | 2 | -17/+17 |
| | |||||
* | Permit to update malformatted functional tests | Pierre Sassoulas | 2021-01-24 | 1 | -1/+5 |
| | | | | Before that an error while reading the file would make the update fail | ||||
* | Add column to the information checked for functional tests | Pierre Sassoulas | 2021-01-24 | 295 | -1543/+1543 |
| | |||||
* | Enforce docparams consistently when docstring is not present (#3916) | Logan Miller | 2021-01-09 | 3 | -1/+58 |
| | | | | | | | | | | | | * fix #2738 * doc updates * add functional tests * fix formattting * fix formatting | ||||
* | Add test for anomalous-backslash-in-string. | Matthew Suozzo | 2021-01-04 | 2 | -0/+27 |
| | |||||
* | Fix location metadata on backslash lint checks | Matthew Suozzo | 2021-01-04 | 2 | -2/+3 |
| | | | | | | The existing column offset logic does not account for the start-of-line to start-of-string offset nor does the line logic reflect the actual line number of the error for multi-line strings. | ||||
* | Fix 'use-symbolic-message-instead' error in 'excess escape' | Pierre Sassoulas | 2021-01-03 | 1 | -1/+1 |
| | |||||
* | Move excess escape functional test to new framework | Pierre Sassoulas | 2021-01-03 | 4 | -15/+16 |
| | |||||
* | empty-comment line number bug fix | Or Bahari | 2021-01-03 | 1 | -4/+4 |
| | |||||
* | mapreduce| Fixes -jN for map/reduce Checkers (e.g. SimilarChecker) | Frank Harrison | 2021-01-02 | 2 | -9/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This integrate the map/reduce functionality into lint.check_process(). We previously had `map` being invoked, here we add `reduce` support. We do this by collecting the map-data by worker and then passing it to a reducer function on the Checker object, if available - determined by whether they confirm to the `mapreduce_checker.MapReduceMixin` mixin interface or nor. This allows Checker objects to function across file-streams when using multiprocessing/-j2+. For example SimilarChecker needs to be able to compare data across all files. The tests, that we also add here, check that a Checker instance returns and reports expected data and errors, such as error-messages and stats - at least in a exit-ok (0) situation. On a personal note, as we are copying more data across process boundaries, I suspect that the memory implications of this might cause issues for large projects already running with -jN and duplicate code detection on. That said, given that it takes a long time to perform lints of large code bases that is an issue for the [near?] future and likely to be part of the performance work. Either way but let's get it working first and deal with memory and perforamnce considerations later - I say this as there are many quick wins we can make here, e.g. file-batching, hashing lines, data compression and so on. | ||||
* | mapreduce| Adds map/reduce functionality to SimilarChecker | Frank Harrison | 2021-01-02 | 3 | -0/+238 |
| | | | | | | | | | Before adding a new mixin this proves the concept works, adding tests as examples of how this would work in the main linter. The idea here is that, because `check_parallel()` uses a multiprocess `map` function, that the natural follow on is to use a 'reduce` paradigm. This should demonstrate that. | ||||
* | Move func_bug113231 to new functional tests | Pierre Sassoulas | 2021-01-01 | 4 | -25/+23 |
| | |||||
* | Move func_disable_linebased to new functional tests | Pierre Sassoulas | 2021-01-01 | 3 | -3/+6 |
| | |||||
* | Actually remove the file even if the tests failed | Pierre Sassoulas | 2021-01-01 | 2 | -6/+10 |
| | | | | Following review, see https://github.com/PyCQA/pylint/pull/4004\#discussion_r550774984 | ||||
* | Uniformize update mechanism in functional tests | Pierre Sassoulas | 2021-01-01 | 1 | -9/+18 |
| | |||||
* | Put test dialect for csv writer in the proper namespace | Pierre Sassoulas | 2021-01-01 | 1 | -9/+6 |
| | |||||
* | Fix and simplify the update mechanism for functional tests | Pierre Sassoulas | 2021-01-01 | 1 | -33/+6 |
| | |||||
* | Refactor a one liner that was on 4 lines | Pierre Sassoulas | 2021-01-01 | 1 | -7/+6 |
| | |||||
* | Remove unused class attribute _TEST_TYPE | Pierre Sassoulas | 2021-01-01 | 1 | -4/+0 |
| | |||||
* | Uniformize update mechanism in functional tests | Pierre Sassoulas | 2021-01-01 | 1 | -8/+8 |
| | |||||
* | Add constant for update file in pylint.test_utils | Pierre Sassoulas | 2021-01-01 | 1 | -9/+7 |
| | |||||
* | Remove test for function inference as astroid is not ready yet | Pierre Sassoulas | 2020-12-31 | 2 | -13/+12 |
| | |||||
* | Add a test for function with comprehension or generator | Pierre Sassoulas | 2020-12-31 | 2 | -1/+16 |
| | | | | Or a function returning a generator. | ||||
* | Better and faster implementation of instance_has_bool | Pierre Sassoulas | 2020-12-31 | 2 | -5/+3 |
| | |||||
* | Add a test for function in len() call for len_check | Pierre Sassoulas | 2020-12-31 | 2 | -0/+14 |
| | |||||
* | Handle range, generator list/dict/set comprehension | Pierre Sassoulas | 2020-12-31 | 2 | -1/+10 |
| | |||||
* | Restrict the number of classes affected by len-as-condition | Pierre Sassoulas | 2020-12-31 | 2 | -1/+47 |
| |