summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wipenforce-the-confidence-in-add-messagePierre Sassoulas2022-12-043-0/+39
|
* [test] Enforce the confidence level being set in 'add_message'Pierre Sassoulas2022-12-041-0/+4
|
* Fix ``missing-param-doc`` for escaped underscores (#7878)Dani Alcala2022-12-043-1/+16
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* add test and expl for line-too-long useless-supp FP (#7887)Dani Alcala2022-12-034-0/+26
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``redundant-union-assign-typehint`` checker for duplicated assign ↵orSolocate2022-11-305-1/+121
| | | | | | typehints (#7745) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Cut oldstyle checksNick Drozd2022-11-303-18/+3
|
* Define Protocol as abstract to prevent abstract-method FP (#7839)Dani Alcala2022-11-306-15/+71
|
* Rephrase Functional tests section in writing_test docs page (#7870)orSolocate2022-11-301-10/+11
|
* Clearer ``reimported`` and new ``shadowed-import`` messages for aliased ↵Dani Alcala2022-11-3014-27/+88
| | | | | | | import (#7756) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [doc] clearer message for 'method-cache-max-size-none' warning (#7861)Pierre Sassoulas2022-11-292-3/+9
| | | Refs #7857
* add docs for too many nested blocksclavedeluna2022-11-293-2/+16
|
* add docs for wrong-exception-opclavedeluna2022-11-293-2/+8
|
* Merge maintenance 2.15.x in main following 2.15.7 release (#7865)Pierre Sassoulas2022-11-293-1/+37
|\
| * Merge branch 'maintenance/2.15.x' in main following 2.15.7 releasePierre Sassoulas2022-11-293-1/+37
| |\ |/ /
| * Bump pylint to 2.15.7, update changelog (#7845)v2.15.7Pierre Sassoulas2022-11-298-16/+38
| |
| * Revert "Fix crash when using ``enumerate`` with ``start`` and a class ↵Pierre Sassoulas2022-11-293-29/+9
| | | | | | | | | | attribute (#7824)" (#7855) This reverts commit 86b8c649061f49c7d121843675ceefe6ff3a8113.
| * Fix ``logging-fstring-interpolation`` false positive (#7846) (#7854)github-actions[bot]2022-11-274-6/+36
| | | | | | | | | | | | | | Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 978d1ab95603fa337e686aac8956366556c23080) Co-authored-by: Dani Alcala <112832187+clavedeluna@users.noreply.github.com>
| * Fix crash when using ``enumerate`` with ``start`` and a class attribute (#7824)Dani Alcala2022-11-253-9/+29
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Execute tests on maintenance branche's PRPierre Sassoulas2022-11-241-1/+1
| |
| * Do not crash if next() is called without arguments (#7831)Dani Alcala2022-11-243-0/+18
| | | | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit a9c1cdabd6d55b6df86b7aef5779f7fc308a3d1c)
| * Upgrade the versions of astroid and dill (#7838)Pierre Sassoulas2022-11-242-3/+3
| | | | | | | | | | | | * [dill] Use dill 0.3.6 for python 3.11 now that dill released it * Upgrade astroid to 2.12.13
| * Add ``content: write`` rights for backporting job (#7826)Pierre Sassoulas2022-11-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not run primers tests on backporting branches * Add content: write rights for backporting job We need it to push to the backporting branch after cherry-picking See https://github.com/PyCQA/pylint/pull/7810\#issuecomment-1324742960 * [github actions] Add a version comment so the tag is clearer Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
| * Fix `used-before-assignment` for variable annotations guarded by ↵Jacob Walls2022-11-234-8/+39
| | | | | | | | TYPE_CHECKING (#7810)
| * Deduplicate module file paths to prevent redundant scans. (#7747)Eric McDonald2022-11-236-32/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use dict for 'expand_modules' result rather than list. With 'path' as the key, we get deduplication for free and do not need to reprocess the list for deduplication later. * Fix deduplication to account for CLI args marker. * Fix corner case with CLI arg flag handling during deduplication. * Add 'deduplication' to custom Pyenchant dict. Closes #6242 Closes #4053 Co-authored-by: Eric McDonald <emcd@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Do not run primers tests on backporting branchesPierre Sassoulas2022-11-232-2/+4
| |
| * Fix ``deprecated-method`` false positive with aliases (#7795)Dani Alcala2022-11-234-16/+30
| | | | | | | | | | | | | | | | When alias for method is similar to name of deprecated method. Closes #5886 (cherry picked from commit 57f38c39ae8df066212df75d684f8608b9f41b9e)
| * [github actions] Permit to launch tests when backporting on maintenance ↵Pierre Sassoulas2022-11-226-6/+33
| | | | | | | | | | | | | | branch (#7815) Remove changelog so we don't have to laboriously label everything "skip news" all the time.
* | ``multiple-statements`` no longer triggers for function stubs using inlined ↵Gideon2022-11-296-15/+10
| | | | | | | | | | | | | | | | ``...`` (#7863) Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | [pre-commit.ci] pre-commit autoupdate (#7862)pre-commit-ci[bot]2022-11-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/PyCQA/autoflake: v1.7.7 → v2.0.0](https://github.com/PyCQA/autoflake/compare/v1.7.7...v2.0.0) We did not upgrade flake8 because it removed python 3.7 support before it's end of life. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix ``dangerous-default-value`` false negative when `*` is used. (#7856)Dani Alcala2022-11-274-1/+16
| |
* | Feature: distinct Composition and Aggregation arrows (#7836)Alvaro Frias2022-11-2716-18/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Linker to add aggregations_type and associations_type to nodes Update logic of nodes to check what kind of relationship does nodes have (association, aggregation) Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update ClassDiagram's extrac_relationship method to add aggregations links Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update DiagramWriter to generate AGGREGATION edges Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update printers to show aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update tests with changes on aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update Linker to add aggregations_type and associations_type to nodes Update logic of nodes to check what kind of relationship does nodes have (association, aggregation) Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update ClassDiagram's extrac_relationship method to add aggregations links Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update DiagramWriter to generate AGGREGATION edges Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update tests with changes on aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply pylint pre-commit correction Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Apply mypy corrections Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add towrncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update towncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update towncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update doc/whatsnew/fragments/6543.feature Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> * Add documentation Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * fix typo Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Add type hints Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update pylint/pyreverse/diagrams.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update type hints Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update fragment * Update fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* | Fix ``logging-fstring-interpolation`` false positive (#7846)Dani Alcala2022-11-264-6/+36
| | | | | | | | Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Prevent `used-before-assignment` for variables defined in assignment ↵Jacob Walls2022-11-253-8/+9
| | | | | | | | expressions (#7847)
* | Enable dict-init-mutate extension (#7844)Nick Drozd2022-11-252-2/+3
| |
* | Fix crash when using ``enumerate`` with ``start`` and a class attribute (#7824)Dani Alcala2022-11-243-9/+21
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Do not crash if next() is called without arguments (#7831)Dani Alcala2022-11-243-0/+18
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Upgrade the versions of astroid and dill (#7838)Pierre Sassoulas2022-11-243-6/+4
| | | | | | | | | | | | | | * [dill] Use dill 0.3.6 for python 3.11 now that dill released it * Upgrade astroid to 2.12.13 * Fix backport job
* | Add ``content: write`` rights for backporting job (#7826)Pierre Sassoulas2022-11-243-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not run primers tests on backporting branches * Add content: write rights for backporting job We need it to push to the backporting branch after cherry-picking See https://github.com/PyCQA/pylint/pull/7810\#issuecomment-1324742960 * [github actions] Add a version comment so the tag is clearer Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* | Add a new check `dict-init-mutate` (#7794)Dani Alcala2022-11-2310-0/+136
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Catch UserWarning when linting stdlib (#7833)Jacob Walls2022-11-231-1/+4
| |
* | Drop dependency on py module (#7829)Lumír 'Frenzy' Balhar2022-11-235-69/+65
| | | | | | | | | | | | | | | | | | * pytest 7.2 no longer depends on py so it's better to drop it. `tmp_path` fixture is newer and uses `pathlib.Path` from stdlib instead of `LocalPath` from `py._path`. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* | Fail pytest runs on warnings (#7809)Jacob Walls2022-11-236-5/+10
| | | | | | | | | | | | | | | | | | | | | | * Catch DeprecationWarning in pyreverse Follow-up to #6869 * Patch use of deprecated `astroid.node_classes` in test * Ignore DeprecationWarning in test_parseable_output_regression Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix `used-before-assignment` for variable annotations guarded by ↵Jacob Walls2022-11-234-8/+39
| | | | | | | | TYPE_CHECKING (#7810)
* | Emit `used-before-assignment` for variables only defined under always false ↵Jacob Walls2022-11-2212-7/+223
| | | | | | | | tests (#6677)
* | [github actions] Permit to launch tests when backporting on maintenance ↵Pierre Sassoulas2022-11-226-10/+6
| | | | | | | | | | | | | | branch (#7815) Remove changelog so we don't have to laboriously label everything "skip news" all the time.
* | Create `TERMINATING_FUNCS_QNAMES` (#7825)Dani Alcala2022-11-221-3/+8
| |
* | Fix end_col_offset deprecation msg (#7823)Dani Alcala2022-11-221-1/+1
| |
* | [pre-commit.ci] pre-commit autoupdate (#7816)pre-commit-ci[bot]2022-11-221-1/+1
| | | | | | | | | | | | updates: - [github.com/pre-commit/mirrors-mypy: v0.990 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.990...v0.991) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* | Bump mypy from 0.990 to 0.991 (#7812)dependabot[bot]2022-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [mypy](https://github.com/python/mypy) from 0.990 to 0.991. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.990...v0.991) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Add extension checker for nested min/max (#7550)Osher De Paz2022-11-216-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | This adds a new checker (not active by default) which identifies usages similar to ``min(<arg1>, min(<arg2>, <arg3>))`` and suggests using a simplified form of ``min(<arg1>, <arg2>, <arg3>)``. Same goes for ``max`` usage. The logic is as follows: it detects calls to either ``min`` or ``max`` functions, and whenever one of their arguments is that same function, it emits the message. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>