| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updates the requirements on [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.14.0...v2.15.0)
---
updated-dependencies:
- dependency-name: pre-commit
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|\
| |
| | |
Extend consider-using-in for attribute access
|
|/ |
|
| |
|
|
|
|
|
|
| |
* Add mypy_extensions to requirement for ``NoReturn``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
Based on discussion in #4787
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Additional test based on a suggestion in #4907
|
| |
|
|
|
|
|
|
| |
Tuples can be created with inner tuples. This creates double parenthesis
which we flagged incorrectly.
This closes #4907
|
|
|
|
|
|
| |
Apparently this use case was supposed to be handled by the py3K
checker but as it was disabled all the time the issue has'nt
been handled at all for a long time.
|
|
|
|
|
|
| |
The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()``
and ``pathlib.Path().write_text()``
This closes #4945
|
|
|
|
|
|
| |
It's possible to use the python3 porting checker from
an older pylint version. But it's not evolving anymore
and was costing resource to maintain.
|
|
|
| |
* In Python 3 'exec' is just a 'Call' node
|
|
|
|
|
|
| |
This fixes a false positive emitted for dictionaries that contain only
tuples as keys. This makes unpacking the dictionary without calling
`.items()` valid.
This closes #3283
|
|
|
|
|
|
|
|
| |
* Fix false positive ``protected-access`` in typing
Class functions can return protected members which can then be passed
as arguments to other functions.
When using type hints in function definitions these raised a message
which they shouldn't do.
|
|
|
|
| |
Closes #4936
|
|
|
|
|
| |
The settings is done in https://readthedocs.org/dashboard/pylint/redirects/
Add an exact redirect.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
updates:
- [github.com/asottile/pyupgrade: v2.24.0 → v2.25.0](https://github.com/asottile/pyupgrade/compare/v2.24.0...v2.25.0)
- [github.com/psf/black: 21.7b0 → 21.8b0](https://github.com/psf/black/compare/21.7b0...21.8b0)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Emit a correct invalid-name message when using multi-naming style.
Previously, given `--function-rgx=(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$` and the code:
```
def FOO():
pass
def UPPER():
pass
def lower():
pass
```
It would emit a message: ``Function name `lower` doesn't conform to '(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern [invalid-name]``.
The message is misleading as `lower` *does* conform to `(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$`. It's just not the prevalent group "UP".
After this commit, the message becomes: ``Function name `lower` doesn't conform to UP group in the '(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern [invalid-name]``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Refer to #4899, was fixed in astroid's https://github.com/PyCQA/astroid/pull/1144
|
|
|
|
|
|
|
|
|
| |
* Add use-set-for-membership check
* Create SetMembershipChecker extension
* Add heuristic to check items for hashability
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bumps [python-docs-theme](https://github.com/python/python-docs-theme) from 2021.5 to 2021.8.
- [Release notes](https://github.com/python/python-docs-theme/releases)
- [Changelog](https://github.com/python/python-docs-theme/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/python/python-docs-theme/compare/2021.5...2021.8)
---
updated-dependencies:
- dependency-name: python-docs-theme
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bumps [black](https://github.com/psf/black) from 21.7b0 to 21.8b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* Add global py-version config
* Add typing-extensions as requirement for Python < 3.10
* Add consider-using-assignment-expr to CodeStyleChecker
* Default to max-line-length
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
|
|
|
|
| |
We're only supporting python version > 3.6 so this became
useless configuration.
|
| |
|
|
|
|
|
|
|
| |
* Add some control flow checks to consider-using-with in order to handle assignments in different branches
* Use existing function from ``astroid`` to determine whether two statements are exclusive
* Add unit tests for new utility methods
* Add ChangeLog and whatsnew entry
|
|
|
|
| |
* Specifies that the pip freeze command should be run and its output pasted into the bug report
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ``consider-using-f-string`` checker
This adds a checker for normal strings which are formatted
with ``.format()`` or '%'.
The message is a convention to nudge users towards using f-strings.
This closes #3592
* Update pylint code to use f-strings
After adding `consider-using-f-strings` the codebase showed numerous
cases of formatting which could be f-strings.
This commit changes most of these to become f-strings, or adds ignores.
* Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
* Upgrade ignored-parents help description
|
| |
|
|
|
| |
The icons are inferred here: https://github.com/pypa/warehouse/blob/main/warehouse/templates/packaging/detail.html
|
| |
|
|
|
|
|
| |
updates:
- [github.com/asottile/pyupgrade: v2.23.3 → v2.24.0](https://github.com/asottile/pyupgrade/compare/v2.23.3...v2.24.0)
|
| |
|
| |
|
|
|
|
| |
Closes #4891
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove typing ignore for platformdirs
* Use local environment for mypy pre-commit
* Update ci workflow
* Revert "Use local environment for mypy pre-commit"
This reverts commit 2052d0a96946ac086430b87dfd9e29c8c43721f9.
* Revert "Update ci workflow"
This reverts commit a0f8174b29e972b1665655a1e29517e3bd7bc184.
* Add platformdirs as additional dependency
|
| |
|
|
|
|
|
| |
* Migrate from appdirs to platformdirs
Closes #4886
|