| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This reverts commit 1712a48c71dd9b1840a3323435384df618c0399d.
In order to test the regression tests.
|
|
|
|
|
|
| |
This is a regression test for https://github.com/PyCQA/astroid/issues/1253
Closes #1470
|
| |
|
|
|
|
|
|
|
|
| |
Closes #1470
Closes #3499
Closes #4302
Closes #4798
Closes #5081
|
| |
|
|
|
|
|
|
|
| |
* Improve coverage
* Remove unnecessary declaration
* Change spacing
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
| |
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
|
| |
|
| |
|
|
|
| |
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix assigning-non-slot false positive with setattr
Previously, if a class was slotted and overrode `__setattr__`,
`assigning-non-slot` would be issued when assigning to attributes. With
`__setattr__` defined, we cannot infer if it is an error to assign to an
attribute, so we suppress the error.
Fix #3793
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, missing-raises-doc could not understand class hierarchies but just compared names.
So, when a method documented a raise of a parent class, but a child exception was raised, the check failed.
With this change, if the name compare doesn't help, the exception class hierarchy is checked.
For that, possible_exc_types was changed to return classes instead of names
Resolved #4955
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: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
The isinstance checks were not necessary here and caused several false
positives where a function with variadic positional argument was called,
like for example when the call is used as a function argument, in a if,
while or with statement.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
number of arguments differ (#5409)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow checking of `end_col_offset` and `end_lineno` in unittests
* Allow checking of `col_offset` in unittests
* Allow checking of `lineno` in unittests
* Update tests for ``TestVariablesChecker``
* Fix ``TestMultiNamingStyle``
* Update tests for ``TestImportsChecker``
* Add location attributes to messages of ``TestTypeChecker``
* Add location params to ``TestMessage``'s of ``TestDeprecatedChecker``
* Add location params to ``TestMessage``'s of ``TestTypeCheckerOnDecorators``
* Add changelog and ``DeprecationWarning``
|
|
|
|
| |
Closes #5460
|
|
|
|
| |
following try blocks that return (#5506)
|
|
|
|
|
|
|
| |
(#5517)
* Remove some redundant test
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
* Remove some redundant tests
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.4.0...v2.5.0)
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2.0.10 to 2.1.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2.0.10...v2.1.0)
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.4 to 2.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.4...v2.3.0)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
|
| |
|
|
|
|
| |
So it's easier to focus on the real error we're testing.
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
statements could have failed (#5384)
* Emit `used-before-assignment` in final or except blocks where try statements could have failed
Fix #85, #2615
|
| |
|
| |
|
|
|
| |
* Fix #5504: Fix crash if the output of items() is assigned to a 1-tuple
|
|
|
|
|
|
| |
in except blocks (#5402)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|