summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix ``bad-super-call`` for non-direct parents (#6956)Daniël van Noord2022-06-182-4/+34
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``undefined-variable`` for ``__class__`` in inner methods (#6957)Daniël van Noord2022-06-182-8/+14
|
* Fix false positive for ``useless-super-delegation`` for variadics (#6949)Daniël van Noord2022-06-182-0/+32
|
* Treat `--errors-only` as a disable, not a paired enable/disable (#6937)Jacob Walls2022-06-151-0/+10
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Mix incorrect parsing of multi-line options in ``ini`` filesDaniël van Noord2022-06-152-1/+8
|
* Add regression test for #6895 (#6898)Jacob Walls2022-06-152-0/+9
| | | | | * Upgrade astroid to 2.11.6 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Mark `no-self-use` as moved to extensions (#6932)Jacob Walls2022-06-152-9/+27
| | | | | | * Mark `no-self-use` as deleted (moved to extensions) * Separate notions of deleted messages from moved messages Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Avoid raising `undefined-loop-variable` twice on same line (#6925)Jacob Walls2022-06-152-0/+9
|
* Prevent pylint.run._cpu_count() from returning 0 (#6903)Paul Lichtenberger2022-06-151-1/+36
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixed misinterpreted modulo sign for ``consider-using-f-string`` (#6914)Paul Lichtenberger2022-06-152-18/+21
| | | | | | * Fixed a false positive in consider-using-f-string if the left side of a % is not a string. * consider-using-f-string: if left side of a \% does not have the attr value it can't be a str
* Suppress ``unnecessary-list-index-lookup`` for whole loop on write (#6845)Tim Martin2022-06-153-0/+19
| | | | | | | | | | The ``unnecessary-list-index-lookup`` checker was assuming that if the subscript was written to then it would only invalidate access on later lines, but this is not necessarily the case if an inner loop is nested inside the one being checked. Fixes #6818 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Avoid `used-before-assignment` in except handlers employing type annotationsJacob Walls2022-06-152-6/+16
|
* Prevent `unused-import` for `if t.TYPE_CHECKING`Jacob Walls2022-06-062-2/+28
|
* [deleted messages] Fix helper function for old names of deleted messagesPierre Sassoulas2022-06-062-4/+4
| | | | Previousely they were considered unknown names.
* [bad-option-value] Add a 'useless-option-value' messagePierre Sassoulas2022-06-0618-44/+43
| | | | | | | So it's possible to to distinguish between genuine typoes and old configuration that could be cleaned. We use old_names to decrease message type to warning
* Fix a crash when linting ``__new__()`` methods that return a call (#6822)Huw Jones2022-06-062-0/+44
| | | Only check for Enum attributes when metaclass is an Enum metaclass
* [bad-option-value] Use the right confidence and refactor message (#6829)Pierre Sassoulas2022-06-0610-23/+30
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix a crash in the optional `private_import` extensionJacob Walls2022-06-061-0/+13
|
* [deleted messages] Add an exception for deleted messages in MessageIdStorePierre Sassoulas2022-06-066-6/+54
|
* [deleted messages] Refactor the constant to be able to give a reasonPierre Sassoulas2022-06-061-5/+6
|
* Prevent warnings on dict / list index lookup with destructuring assignment ↵Tim Martin2022-06-062-0/+14
| | | | | | (#6808) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix the use of abbreviations for preprocessable options on the CLI (#6820)Daniël van Noord2022-06-061-0/+15
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prevent `used-before-assignment` for names only defined under `except` if ↵Jacob Walls2022-06-062-0/+65
| | | | the `else` returns (#6791)
* Fix parsing of unrelated options in tox.ini (#6801)Daniël van Noord2022-06-062-0/+19
|
* Don't crash if we can't find the user's home directory (#6806)Daniël van Noord2022-06-061-0/+15
|
* Add commit hash in the primer comment (#6783)Daniël van Noord2022-06-011-0/+7
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``.git`` in package links in the primer (#6782)Daniël van Noord2022-06-012-5/+7
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a crash in the ``docparams`` extension when raising the result of a ↵Jacob Walls2022-05-311-0/+11
| | | | function (#6767)
* Avoid comparing timestamps in fatal messagesJacob Walls2022-05-311-7/+17
|
* Filter out astroid errors from the bot comment (#6773)Jacob Walls2022-05-311-24/+17
|
* Fix broken links in primer comments by stripping ".git" (#6768)Jacob Walls2022-05-311-1/+2
|
* Remove ``home-assistant`` from primerDaniël van Noord2022-05-301-5/+0
|
* Remove redundant second batch of old primerDaniël van Noord2022-05-303-23/+0
|
* Fail "new primer" runs on fatal errors, like the "old primer" (#6746)Jacob Walls2022-05-302-2/+20
|
* Move more packages to the new primerDaniël van Noord2022-05-303-23/+22
|
* Add python version into the file name of output files of primer (#6754)Daniël van Noord2022-05-301-1/+5
|
* Put fatal messages at the top in the primer commentDaniël van Noord2022-05-291-17/+46
|
* Fix `pyreverse` type annotations for attributes using alternative union ↵Andreas Finkler2022-05-295-0/+48
| | | | | | | | | | | syntax (#6720) * Fix `pyreverse` type annotations for attributes using alternative union syntax. * Fix `dot` output and add additional test cases * Apply suggestions from code review * Add changelog entry in `full.rst`
* Add more packages to the new primerDaniël van Noord2022-05-293-10/+10
|
* Fix URLs for primerDaniël van Noord2022-05-291-2/+2
|
* Add a doc example for simplifiable-if-expression and simplifiable-if-statementPierre Sassoulas2022-05-292-3/+30
| | | | | Refs #5953 Closes #5882
* Compare difference between primer runs and post comment (#6723)Daniël van Noord2022-05-282-2/+89
|
* Small refactors to primerDaniël van Noord2022-05-281-1/+4
|
* Add ``pytest`` to to-be primed packagesDaniël van Noord2022-05-283-10/+6
|
* Move ``pylint_primer_tests`` into ``tests``Daniël van Noord2022-05-283-3/+3
|
* Primer tool: remove duplicated directory pathsJacob Walls2022-05-281-1/+1
|
* Run and upload primer over packages (#6714)Daniël van Noord2022-05-282-1/+39
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix tests and add example for explicit `Union` type hint.DudeNr332022-05-272-3/+9
|
* Fix return type annotations in MermaidJS diagrams.DudeNr332022-05-274-6/+29
|
* Refactor and deprecate resolving of interface implementations in `pyreverse` ↵Andreas Finkler2022-05-271-1/+16
| | | | | | | | | | | | | | | (#6713) * Remove variables and code paths that are always static in productive use. * Add deprecation warning if an interface defined through ``__implements__`` is found. * Update pylint/pyreverse/inspector.py Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> * Group changelog entries together with refactor from #6712 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>