| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
| | |
|
| |
|
|
| |
Closes #5029
|
| |
|
|
| |
This closes #5017
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add type annotations to ``visit`` & ``leave`` calls
This adds typing to most calls that visit nodes. All other changes are
due to mypy errors resulting from introduction of typing.
* Fix outstanding mypy issues
This removes some of the `type: ignore` comments in favour of
solving the mypy issues these comments were surpressing.
* Fix remaining references to node_classes
Except for two references to node_classes in the changelog this should be the last of them
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
| |
The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()``
and ``pathlib.Path().write_text()``
This closes #4945
|
| |
|
|
| |
Closes #4891
|
| | |
|
| | |
|
| |
|
|
| |
* Use alias for astroid nodes
* Resolve name conflicts
|
| |
|
|
| |
This reverts commit ca3bc53fd8d628473fba25c7736d0abfac8e4a4a.
|
| |
|
|
|
|
|
|
| |
* Add ``no-breakpoint`` checker this adds a checker for calls to ``breakpoint()``, ``pdb.set_trace()``, or ``sys.breakpointhook()``.
Closes #3692
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ``use-list-literal`` and ``use-dict-literal``
This adds two checks for when empty lists and dicts are created
using a function call instead of their literals.
This closes #4365
* Conform code to use-list-literal, use-dict-literal
With addition of the use-list-literal and use-dict-literal
checkers some code had to be updated.
As there is a real performance difference, the literal is preferred
when it is as clear as using the function call.
* Conform test to use-list-literal, use-dict-literal
With addition of the use-list-literal and use-dict-literal
checkers some code had to be updated.
As there is a real performance difference, the literal is preferred
when it is as clear as using the function call. For some tests
ignoring the checker seemed better for clarity of the test.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add unspecified-encoding checker #3826
This adds an unspecified-encoding checker that adds a warning
whenever open() is called without an explicit encoding argument.
This closes #3826
* Update tests to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added, or the message has been
disabled.
This also includes small linting changes to a small number
of tests. Their test-data has been updated to reflect new line numbers.
* Update scripts to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.
* Update pylint to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
| | |
|
| |
|
|
| |
It was deprecated in 3.3 and removed in 3.8.
|
| | |
|
| |
|
|
| |
* Fix link in license header
* Update link to astroid bump_changelog
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* Added deprecated decorators check
* Updated Changelog and whatsnew
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>
|
| |
|
|
|
| |
* Moved stdlib module deprecation from imports checker to stdlib checker
* Ignore deprecated-module error in pylint/config modules
|
| |
|
|
| |
(#4435)
|
| |
|
| |
* Add deprecated methods, classes and arguments to stdlib checker
|
| |
|
| |
* Add deprecated class arguments
|
| |
|
| |
* Add new warning ``deprecated-class``, fix pre-commit ci pipeline.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Remove unused imports for astroid
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Fixes regression introduced by
https://github.com/PyCQA/pylint/commit/9d4f2c082e4f17fb5165deb0c9e4a0fd329d5cbd which incorrectly added getfullargspec as deprecated, which in fact was
never deprecated, not even in the latest 3.9.0
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
using configuration:
```yaml
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.0
hooks:
- id: pyupgrade
args: [--py3-plus, --keep-percent-format]
exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/)
```
|
| | |
|
| |
|
|
|
|
| |
functions (#3189)
inspect.getargvalues was inadvertently marked as deprecated in Python 3.5, and was deprecated in Python 3.6. See https://bugs.python.org/issue28814 for details.
|
| |
|
|
| |
We no longer support Python 2 so we can remove
the compatibility code we had in place for that version.
|
| |
|
|
| |
Close #2327
|