summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add nan-comparison checker for NaN comparisonsOr Bahari2021-02-183-0/+70
| | | | **After fix whatsnew to 2.7
* Fix issue with nested PEP 604 syntaxMarc Mueller2021-02-165-25/+44
|
* Fix issue with nested PEP 585 syntaxMarc Mueller2021-02-165-12/+83
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-168-132/+89
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Fix pylint warningshippo912021-02-161-1/+0
|
* Disable TestNoSixDavid Gilman2021-02-161-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.6David Gilman2021-02-1639-398/+0
|
* Re-add accidentally removed py3k unittestDavid Gilman2021-02-161-0/+23
|
* Check for lack of six in tox test runsDavid Gilman2021-02-161-0/+14
|
* Remove six dependency from test suiteDavid Gilman2021-02-1616-64/+55
|
* Graingert add generated members match against the qualified name (#4092)Pierre Sassoulas2021-02-153-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 defPierre Sassoulas2021-02-151-1/+1
|
* Fix all E741 ambiguous variable name 'l'Pierre Sassoulas2021-02-151-14/+13
|
* Fix TypedDict inherit-non-class false-positive Python 3.9+Marc Mueller2021-02-152-0/+20
| | | | * Closes #1927
* Fix multiple false positives with assignment expressionsMarc Mueller2021-02-153-0/+63
| | | | | * Used-before-assignment false positive * Undefined-variable false positive
* Add check for alternative union syntax - PEP 604Marc Mueller2021-02-158-0/+285
|
* Add support for pep585 with postponed evaulationMarc Mueller2021-02-158-0/+287
|
* Remove a sys.pypy_version_info that can only fail and unskip a testPierre Sassoulas2021-02-071-10/+0
|
* Fix mypy error: os module has no attribute "_name"Pierre Sassoulas2021-02-071-1/+1
|
* Remove unused and bugged pypy_version_infoPierre Sassoulas2021-02-071-5/+0
|
* Fix need type annotation for 'CONFIG'Pierre Sassoulas2021-02-071-3/+4
|
* Remove unnecessary " inside functional testPierre Sassoulas2021-01-243-4/+4
| | | | Following review see : https://github.com/PyCQA/pylint/pull/4013\#discussion_r561173585
* Fix functional tests for python 3.5Pierre Sassoulas2021-01-243-4/+4
|
* Fix functional tests for python 3.6/3.7Pierre Sassoulas2021-01-242-17/+17
|
* Permit to update malformatted functional testsPierre Sassoulas2021-01-241-1/+5
| | | | Before that an error while reading the file would make the update fail
* Add column to the information checked for functional testsPierre Sassoulas2021-01-24295-1543/+1543
|
* Enforce docparams consistently when docstring is not present (#3916)Logan Miller2021-01-093-1/+58
| | | | | | | | | | | | * fix #2738 * doc updates * add functional tests * fix formattting * fix formatting
* Add test for anomalous-backslash-in-string.Matthew Suozzo2021-01-042-0/+27
|
* Fix location metadata on backslash lint checksMatthew Suozzo2021-01-042-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 Sassoulas2021-01-031-1/+1
|
* Move excess escape functional test to new frameworkPierre Sassoulas2021-01-034-15/+16
|
* empty-comment line number bug fixOr Bahari2021-01-031-4/+4
|
* mapreduce| Fixes -jN for map/reduce Checkers (e.g. SimilarChecker)Frank Harrison2021-01-022-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 SimilarCheckerFrank Harrison2021-01-023-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 testsPierre Sassoulas2021-01-014-25/+23
|
* Move func_disable_linebased to new functional testsPierre Sassoulas2021-01-013-3/+6
|
* Actually remove the file even if the tests failedPierre Sassoulas2021-01-012-6/+10
| | | | Following review, see https://github.com/PyCQA/pylint/pull/4004\#discussion_r550774984
* Uniformize update mechanism in functional testsPierre Sassoulas2021-01-011-9/+18
|
* Put test dialect for csv writer in the proper namespacePierre Sassoulas2021-01-011-9/+6
|
* Fix and simplify the update mechanism for functional testsPierre Sassoulas2021-01-011-33/+6
|
* Refactor a one liner that was on 4 linesPierre Sassoulas2021-01-011-7/+6
|
* Remove unused class attribute _TEST_TYPEPierre Sassoulas2021-01-011-4/+0
|
* Uniformize update mechanism in functional testsPierre Sassoulas2021-01-011-8/+8
|
* Add constant for update file in pylint.test_utilsPierre Sassoulas2021-01-011-9/+7
|
* Remove test for function inference as astroid is not ready yetPierre Sassoulas2020-12-312-13/+12
|
* Add a test for function with comprehension or generatorPierre Sassoulas2020-12-312-1/+16
| | | | Or a function returning a generator.
* Better and faster implementation of instance_has_boolPierre Sassoulas2020-12-312-5/+3
|
* Add a test for function in len() call for len_checkPierre Sassoulas2020-12-312-0/+14
|
* Handle range, generator list/dict/set comprehensionPierre Sassoulas2020-12-312-1/+10
|
* Restrict the number of classes affected by len-as-conditionPierre Sassoulas2020-12-312-1/+47
|