Permalink
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
19
contributors
Commits on Apr 27, 2020
Commits on Apr 28, 2020
The patch replaces `mro()` with `ancestors()` as the former is not fully capable of generating the complete linearization when dealing with ambiguous inferences. Close #3527
Commits on May 01, 2020
This has been inadvertently changed several releases ago to ``do_exit``. Close #3533
Not necessary anymore as we fixed all the problem or disabled them.
Commits on May 02, 2020
This was a regressin in 2.5. Close #3528
This permits to inline some functions that now have a single instruction.
Commits on May 03, 2020
And take review into account see #3578 (comment)
Python3 raises: TabError: inconsistent use of tabs and spaces in indentation
Commits on May 05, 2020
Also move it from the Python 3 checker to the refactoring one, as it's a better fit for it.
We need to allow various third party libraries that depend on `pylint` to still use `do_exit` until they can move over to `exit`. Close #3590
Commits on May 06, 2020
Background info at pypa/warehouse#7882
Commits on May 10, 2020
Can't find where the version is even printed in a normal case.
Commits on May 14, 2020
Commits on May 16, 2020
Fixes #3538 Before that, we had to use strings in a TOML configuration file, like this: enable = "use-symbolic-message-instead,useless-suppression" jobs = "10" suggestion-mode = "no" TOML supports rich types like list, integer and boolean. They make for a more readable and less error-prone file. We can now express the same configuration like this: enable = [ "use-symbolic-message-instead", "useless-suppression", ] jobs = 10 suggestion-mode = false
Commits on May 27, 2020
…r linters * Faq detailing which messages to disable to avoid duplicates w/ other linters (#3647) * Add name to contributors * Update ChangeLog * Update faq.rst * Extend underline
Commits on May 29, 2020
Commits on Jun 08, 2020
This fixes #3666.
Commits on Jun 09, 2020
Commits on Jun 11, 2020
Commits on Jun 14, 2020
Commits on Jun 16, 2020
The default pre-commit behaviour might lead to falsely succeeding lint-runs. E.g. due to duplicate lines of code spread across multiple files -- if affected files get spread across multiple runs, duplicates can not be detected.
Commits on Jun 17, 2020
Commits on Jun 18, 2020
…ing `infer_call_result` Close #3690
Commits on Jun 20, 2020
Commits on Jun 22, 2020
Commits on Jun 25, 2020
I know that this isn't the most important thing in the world, but as a Latin teacher, it is (literally) my job to notice this sort of thing. Thanks for pylint.
Commits on Jul 04, 2020
typo fix, identitiy -> identity
Commits on Jul 12, 2020
Commits on Jul 16, 2020
Without this dependency the test suite fails
Commits on Aug 18, 2020
The API of isort 5 (released on 2020-07-04) is completely different. We must still support isort 4 because isort 5 dropped the compatibility with Python 3.5, which pylint still supports. Note about the `known-standard-library` option: it has been included in pylint for years. Until now, it was mapped with the option of the same name in isort. However, isort 5 has changed the meaning of this option (see https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/#known_standard_library). Most users of pylint want the meaning of the new `extra-standard-library` option. To avoid a breaking change in pylint, the `known-standard-library` pylint option is now mapped to `known-standard-library` in isort 4, and `extra-standard-library` in isort 5. Users that really want the _new_ meaning of `known-standard-library` in isort 4 must disable the `wrong-import-order` check in pylint and run isort manually, outside of pylint. Fix #3722.
isort is already a dependency of pylint, there is no need to mention it explicitly. Except for the "formatting" environment where we want to pin a specific version to avoid noise when a new version of isort is released that reports errors.
Commits on Aug 20, 2020
Commits on Aug 21, 2020
Corrects syntax error that prevent upload to pypi
Unified
Split
Showing
365 changed files
with
2,962 additions
and 3,259 deletions.
| @@ -24,7 +24,7 @@ | ||
| "afayolle.ml@free.fr", | ||
| "aurelien.campeas@logilab.fr", | ||
| "lmedioni@logilab.fr" | ||
|
|
||
| ], | ||
| "authoritative_mail": "contact@logilab.fr", | ||
| "name": "LOGILAB S.A. (Paris, FRANCE)" | ||
| @@ -45,7 +45,7 @@ | ||
| "balparda@google.com", | ||
| "dlindquist@google.com" | ||
| ], | ||
| "name": "Google, Inc." | ||
| "name": "Google, Inc." | ||
| }, | ||
| { | ||
| "mails": [ | ||
| @@ -26,4 +26,3 @@ about: Report a bug in pylint | ||
|
|
||
|
|
||
| ### pylint --version output | ||
|
|
||
| @@ -19,4 +19,4 @@ A clear and concise description of what you want to happen. | ||
|
|
||
|
|
||
| ### Additional context | ||
| Add any other context about the feature request here. | ||
| Add any other context about the feature request here. | ||
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| name: Support question | ||
| about: Questions about pylint that are not covered in the documentation (http://pylint.pycqa.org/en/latest/) | ||
| about: Questions about pylint that are not covered in the documentation (https://pylint.pycqa.org/en/latest/) | ||
|
|
||
| --- | ||
|
|
||
| @@ -29,9 +29,9 @@ https://github.com/PyCQA/pylint/blob/master/doc/development_guide/contribute.rst | ||
|
|
||
| ## Related Issue | ||
|
|
||
| <!-- | ||
| <!-- | ||
| If this PR fixes a particular issue, use the following to automatically close that issue | ||
| once this PR gets merged: | ||
| Closes #XXX | ||
| Closes #XXX | ||
| --> | ||
| @@ -1,7 +1,7 @@ | ||
| [settings] | ||
| multi_line_output=3 | ||
| line_length=88 | ||
| known_third_party=astroid, sphinx, isort, pytest, mccabe, six, | ||
| known_third_party=astroid, sphinx, isort, pytest, mccabe, six, toml | ||
| include_trailing_comma=True | ||
| skip_glob=tests/functional/**,tests/input/**,tests/extensions/data/**,tests/regrtest_data/**,tests/data/**,astroid/**,venv/** | ||
| project=pylint | ||
| src_paths=pylint |
| @@ -3,3 +3,4 @@ | ||
| entry: pylint | ||
| language: python | ||
| types: [python] | ||
| require_serial: true | ||
| @@ -381,3 +381,17 @@ contributors: | ||
| * Yang Yang: contributor | ||
|
|
||
| * Andrew J. Simmons (anjsimmo): contributor | ||
|
|
||
| * Damien Baty: contributor | ||
|
|
||
| * Daniel R. Neal (danrneal): contributer | ||
|
|
||
| * Jeremy Fleischman (jfly): contributer | ||
|
|
||
| * Shiv Venkatasubrahmanyam | ||
|
|
||
| * Jochen Preusche (iilei): contributor | ||
|
|
||
| * Ram Rachum (cool-RR) | ||
|
|
||
| * Pieter Engelbrecht | ||
| @@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all. | ||
|
|
||
| The precise terms and conditions for copying, distribution and | ||
| modification follow. | ||
|
|
||
|
|
||
| GNU GENERAL PUBLIC LICENSE | ||
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
|
||
| @@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions: | ||
| License. (Exception: if the Program itself is interactive but | ||
| does not normally print such an announcement, your work based on | ||
| the Program is not required to print an announcement.) | ||
|
|
||
|
|
||
| These requirements apply to the modified work as a whole. If | ||
| identifiable sections of that work are not derived from the Program, | ||
| and can be reasonably considered independent and separate works in | ||
| @@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent | ||
| access to copy the source code from the same place counts as | ||
| distribution of the source code, even though third parties are not | ||
| compelled to copy the source along with the object code. | ||
|
|
||
|
|
||
| 4. You may not copy, modify, sublicense, or distribute the Program | ||
| except as expressly provided under this License. Any attempt | ||
| otherwise to copy, modify, sublicense or distribute the Program is | ||
| @@ -225,7 +225,7 @@ impose that choice. | ||
|
|
||
| This section is intended to make thoroughly clear what is believed to | ||
| be a consequence of the rest of this License. | ||
|
|
||
|
|
||
| 8. If the distribution and/or use of the Program is restricted in | ||
| certain countries either by patents or by copyrighted interfaces, the | ||
| original copyright holder who places the Program under this License | ||
| @@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
| POSSIBILITY OF SUCH DAMAGES. | ||
|
|
||
| END OF TERMS AND CONDITIONS | ||
|
|
||
|
|
||
| How to Apply These Terms to Your New Programs | ||
|
|
||
| If you develop a new program, and you want it to be of the greatest | ||
| @@ -2,6 +2,144 @@ | ||
| Pylint's ChangeLog | ||
| ------------------ | ||
|
|
||
| What's New in Pylint 2.6.0? | ||
| =========================== | ||
|
|
||
| Release date: 2020-08-20 | ||
|
|
||
| * Fix various scope-related bugs in ``undefined-variable`` checker | ||
|
|
||
| Close #1082, #3434, #3461 | ||
|
|
||
| * bad-continuation and bad-whitespace have been removed, black or another formatter can help you with this better than Pylint | ||
|
|
||
| Close #246, #289, #638, #747, #1148, #1179, #1943, #2041, #2301, #2304, #2944, #3565 | ||
|
|
||
| * The no-space-check option has been removed. It's no longer possible to consider empty line like a `trailing-whitespace` by using clever options | ||
|
|
||
| Close #1368 | ||
|
|
||
| * ``missing-kwoa`` is no longer emitted when dealing with overload functions | ||
|
|
||
| Close #3655 | ||
|
|
||
| * mixed-indentation has been removed, it is no longer useful since TabError is included directly in python3 | ||
|
|
||
| Close #2984 #3573 | ||
|
|
||
| * Add `super-with-arguments` check for flagging instances of Python 2 style super calls. | ||
|
|
||
| * Add an faq detailing which messages to disable to avoid duplicates w/ other popular linters | ||
|
|
||
| * Fix superfluous-parens false-positive for the walrus operator | ||
|
|
||
| Close #3383 | ||
|
|
||
| * Fix `fail-under` not accepting floats | ||
|
|
||
| * Fix a bug with `ignore-docstrings` ignoring all lines in a module | ||
|
|
||
| * Fix `pre-commit` config that could lead to undetected duplicate lines of code | ||
|
|
||
| * Fix a crash in parallel mode when the module's filepath is not set | ||
|
|
||
| Close #3564 | ||
|
|
||
| * Add `raise-missing-from` check for exceptions that should have a cause. | ||
|
|
||
| * Support both isort 4 and isort 5. If you have pinned isort 4 in your projet requirements, nothing changes. If you use isort 5, though, note that the `known-standard-library` option is not interpreted the same in isort 4 and isort 5 (see the migration guide in isort documentation for further details). For compatibility's sake for most pylint users, the `known-standard-library` option in pylint now maps to `extra-standard-library` in isort 5. If you really want what `known-standard-library` now means in isort 5, you must disable the `wrong-import-order` check in pylint and run isort manually with a proper isort configuration file. | ||
|
|
||
| Close #3722 | ||
|
|
||
|
|
||
| What's New in Pylint 2.5.4? | ||
| =========================== | ||
|
|
||
| * Fix a crash caused by not guarding against `InferenceError` when calling `infer_call_result` | ||
|
|
||
| Close #3690 | ||
|
|
||
| * Fix a crash in parallel mode when the module's filepath is not set | ||
|
|
||
| Close #3564 | ||
|
|
||
|
|
||
| What's New in Pylint 2.5.3? | ||
| =========================== | ||
|
|
||
| Release date: 2020-06-8 | ||
|
|
||
| * Fix a regression where disable comments that have checker names with numbers in them are not parsed correctly | ||
|
|
||
| Close #3666 | ||
|
|
||
| * `property-with-parameters` properly handles abstract properties | ||
|
|
||
| Close #3600 | ||
|
|
||
| * `continue-in-finally` no longer emitted on Python 3.8 where it's now valid | ||
|
|
||
| Close #3612 | ||
|
|
||
| * Fix a regression where messages with dash are not fully parsed | ||
|
|
||
| Close #3604 | ||
|
|
||
| * In a TOML configuration file, it's now possible to use rich (non-string) types, such as list, integer or boolean instead of strings. For example, one can now define a *list* of message identifiers to enable like this:: | ||
|
|
||
| enable = [ | ||
| "use-symbolic-message-instead", | ||
| "useless-suppression", | ||
| ] | ||
|
|
||
| Close #3538 | ||
|
|
||
| * Fix a regression where the score was not reported with multiple jobs | ||
|
|
||
| Close #3547 | ||
|
|
||
| * Protect against `AttributeError` when checking `cell-var-from-loop` | ||
|
|
||
| Close #3646 | ||
|
|
||
|
|
||
| What's New in Pylint 2.5.2? | ||
| =========================== | ||
|
|
||
| Release date: 2020-05-05 | ||
|
|
||
| * ``pylint.Run`` accepts ``do_exit`` as a deprecated parameter | ||
|
|
||
| Close #3590 | ||
|
|
||
|
|
||
| What's New in Pylint 2.5.1? | ||
| =========================== | ||
|
|
||
| Release date: 2020-05-05 | ||
|
|
||
| * Fix a crash in `method-hidden` lookup for unknown base classes | ||
|
|
||
| Close #3527 | ||
|
|
||
| * Revert pylint.Run's `exit` parameter to ``do_exit`` | ||
|
|
||
| This has been inadvertently changed several releases ago to ``do_exit``. | ||
|
|
||
| Close #3533 | ||
|
|
||
| * ``no-value-for-parameter`` variadic detection has improved for assign statements | ||
|
|
||
| Close #3563 | ||
|
|
||
| * Allow package files to be properly discovered with multiple jobs | ||
|
|
||
| Close #3524 | ||
|
|
||
| * Allow linting directories without `__init__.py` which was a regression in 2.5. | ||
|
|
||
| Close #3528 | ||
|
|
||
| What's New in Pylint 2.5.0? | ||
| =========================== | ||
|
|
||
| @@ -1,6 +1,6 @@ | ||
|
|
||
| README for Pylint - http://pylint.pycqa.org/ | ||
| ============================================ | ||
| README for Pylint - https://pylint.pycqa.org/ | ||
| ============================================= | ||
|
|
||
| .. image:: https://travis-ci.org/PyCQA/pylint.svg?branch=master | ||
| :target: https://travis-ci.org/PyCQA/pylint | ||
| @@ -18,7 +18,7 @@ README for Pylint - http://pylint.pycqa.org/ | ||
| :target: https://pypi.python.org/pypi/pylint | ||
|
|
||
| .. image:: https://readthedocs.org/projects/pylint/badge/?version=latest | ||
| :target: http://pylint.readthedocs.io/en/latest/?badge=latest | ||
| :target: https://pylint.readthedocs.io/en/latest/?badge=latest | ||
| :alt: Documentation Status | ||
|
|
||
| .. image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
| @@ -95,7 +95,7 @@ can be found here_. | ||
| Documentation | ||
| ------------- | ||
|
|
||
| The documentation lives at http://pylint.pycqa.org/. | ||
| The documentation lives at https://pylint.pycqa.org/. | ||
|
|
||
| Pylint is shipped with following additional commands: | ||
|
|
||
| @@ -152,7 +152,7 @@ Do not forget to clone astroid_ and install the last version:: | ||
|
|
||
| For more detailed information, check the documentation. | ||
|
|
||
| .. _here: http://pylint.pycqa.org/en/latest/user_guide/installation.html | ||
| .. _here: https://pylint.pycqa.org/en/latest/user_guide/installation.html | ||
| .. _tox: https://tox.readthedocs.io/en/latest/ | ||
| .. _pytest: https://docs.pytest.org/en/latest/ | ||
| .. _pytest-cov: https://pypi.org/project/pytest-cov/ | ||
| @@ -7,4 +7,3 @@ pylint (0.13.2-2) unstable; urgency=low | ||
| users may get it from /usr/share/doc/pylint/examples/pylint.el | ||
|
|
||
| -- Alexandre Fayolle <afayolle@debian.org> Wed, 04 Jul 2007 12:18:23 +0200 | ||
|
|
||
| @@ -544,4 +544,3 @@ logilab-pylint (0.1.0-1) unstable; urgency=low | ||
| * Initial Release. | ||
|
|
||
| -- Sylvain Thénault <sylvain.thenault@logilab.fr> Wed, 23 Apr 2003 14:42:05 +0200 | ||
|
|
||
| @@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 5.0.38), python (>= 2.5) | ||
| Build-Depends-Indep: python-support | ||
| XS-Python-Version: >= 2.5 | ||
| Standards-Version: 3.8.2 | ||
| Homepage: http://www.pylint.org | ||
| Homepage: https://www.pylint.org | ||
| Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/pylint/trunk/ | ||
| Vcs-Hg: https://bitbucket.org/logilab/pylint | ||
| Vcs-Browser: https://bitbucket.org/logilab/pylint/src | ||
| @@ -460,4 +460,3 @@ License: CC-BY-SA-4.0 | ||
| licenses. | ||
| . | ||
| Creative Commons may be contacted at creativecommons.org. | ||
|
|
||
| @@ -23,7 +23,7 @@ FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" | ||
| ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} | ||
| ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} | ||
|
|
||
| # Install-info-altdir does not actually exist. | ||
| # Install-info-altdir does not actually exist. | ||
| # Maybe somebody will write it. | ||
| if test -x /usr/sbin/install-info-altdir; then | ||
| echo install/${PACKAGE}: install Info links for ${FLAVOR} | ||
| @@ -3,10 +3,10 @@ | ||
| # GNU copyright 1997 to 1999 by Joey Hess. | ||
| # | ||
| # adapted by Logilab for automatic generation by debianize | ||
| # (part of the devtools project, http://www.logilab.org/projects/devtools) | ||
| # (part of the devtools project, https://www.logilab.org/projects/devtools) | ||
| # | ||
| # Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). | ||
| # http://www.logilab.fr/ -- mailto:contact@logilab.fr | ||
| # https://www.logilab.fr/ -- mailto:contact@logilab.fr | ||
|
|
||
| # Uncomment this to turn on verbose mode. | ||
| #export DH_VERBOSE=1 | ||
| @@ -12,4 +12,3 @@ Python code: | ||
| * SaltStack (https://github.com/saltstack) | ||
| * CodeFactor (https://github.com/codefactor-io) | ||
| * many more... | ||
|
|
||
| @@ -108,7 +108,7 @@ | ||
| "collapsiblesidebar": True, | ||
| "issues_url": "https://github.com/pycqa/pylint/issues/new", | ||
| "root_name": "PyCQA", | ||
| "root_url": "http://meta.pycqa.org/en/latest/", | ||
| "root_url": "https://meta.pycqa.org/en/latest/", | ||
| } | ||
|
|
||
| # Add any paths that contain custom themes here, relative to this directory. | ||
| @@ -233,7 +233,7 @@ | ||
| ] | ||
|
|
||
| intersphinx_mapping = { | ||
| "astroid": ("http://astroid.readthedocs.io/en/latest/", None), | ||
| "astroid": ("https://astroid.readthedocs.io/en/latest/", None), | ||
| "python": ("https://docs.python.org/3", None), | ||
| } | ||
|
|
||
Oops, something went wrong.