| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
| |
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
| |
Refs #7938
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
When linting multiple modules & one module uses an import in a type annotation & the same import is unused in a subsequent module.
Closes #4150
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
- Refactor Classes which inherit from `object`.
- Remove `import print_function from __future__`.
- Remove assignments to `__revision__` from the functional test module when it is never used throughout the module.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Ignore specified files/directories in recursive mode
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update Changelog
* Fix typo in Changelog
* Fix typo in comment
* Add missing regrtest data directory
* Improved unittests
* Move common code of checking if file is ignored to separate function
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Rename is_ignored_file to _is_ignored_file
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Apply suggestions from code review
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 ChangeLog
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
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>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
This reverts commit 603be8408a5d2d98283f41cfd9a94998fd7cfd3c.
|
| |
|
|
|
| |
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
|
|
| |
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#5925)
* Fix parsing of long lines when ``missing-final-newline`` is enabled
* Adapt fa31b6b6 to be backward-compatible
Fixes #5724
Also address comments from the PR PyCQA/pylint#5786
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
| |
* Added --recursive=y/n option and a mention in FAQ and user guide
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
| |
Remove verbose docstring in code, keep them in example and doc
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix typo in pylintrc for useless-suppression
* Fix CI for information messages
* Remove useless disables
* Update CI and docs for 3.8+
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add regression test for #4972 hang
* Fix loop in too-many-ancestors when an inheritance cycle is inferred
Ref #4972. If a class could be inferred as an ancestor of itself then
the implementation of _get_parents could get caught in an infinite loop,
forever adding itself to to_explore. This could be possible by
monkeypatching an ancestor after class definition like in the following
simplified example:
class Fake(module.Cls):
pass
module.Cls = Fake
Reproducing this is fairly tricky, but this integration test shows the
behaviour as of 1e675abcc2aa931421d7ce300908e734a93fd790:
#!/bin/sh
HERE=$(readlink -f .)
VENV=$HERE/venv-repro
PIP=$VENV/bin/pip
python -m venv "$VENV"
PYLINT=$VENV/bin/pylint
# assume running in pylint dir
$PIP install -e .
$PIP install flask
mkdir -p repro/flask/
touch repro/__init__.py
cat > repro/flask/__init__.py <<'EOF'
import flask
import repro.flask # self-import necessary
class Fake(flask.Flask):
pass
flask.Flask = Fake
EOF
echo +++ this is fine
$PYLINT --rcfile=/dev/null -- repro/flask/
echo +++ finished
echo +++ this loops forever
cd repro/; $PYLINT --rcfile=/dev/null -- flask/
echo +++ should not reach here
|
|
|
|
|
|
| |
* Add mypy_extensions to requirement for ``NoReturn``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
exactly zero.
|
| |
|
| |
|
|
|
|
| |
Close #3564
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
inference in ``pyreverse``
Close #3256
|
|
|
|
|
| |
Certain checks such as relative-import, invalid-encoded-data and missing-super-argument
were removed as they no longer make sense on Python 3.
|
|
|