self is inserted for methods that are not class-/staticmethod
cls is inserted for classmethod
empty parameter list for staticmethod
GitOrigin-RevId: 9743ae50c89c069b8123b8b6eb26fb841dd1f5b2
For UnitTest you need to create class. However, pytest accepts plain function tests ("test_..").
We should not force user to use classes.
Also, many small improvement added:
* detect test folder
* create tests for everything in class
* do not create tests for tests
GitOrigin-RevId: 85dbe09e4fea47a116aaac9c00cec884f46bae9e
I reverted changes in 235f566771e9bd83c5b04e47c170501830b5c66a and modified PyUndefinedGlobalInspection instead, to restore global variable discovery in Scope methods
GitOrigin-RevId: 6b432b2c2364cd94dc8463ea773a02350d9e915f
We used to use __all__ even if it was defined on the class level, even though you can only influence the names
exported by a module via a file-level __all__.
This fix requires re-calculating __all__ in PSI stubs, that's why we've incremented the stub version.
GitOrigin-RevId: bfc87d0bff7eb94c446ac453872d742081689729
When we see test runner in "commands" section of tox, we substitute it with our test runners so user may benefit from test trees.
We also pass "offset" because test runners must use it as "parent node".
Set "_jb_do_not_patch_test_runners" to disable this substitution
(cherry picked from commit c7d469e1fed52f2d7fe3aec6d96b665c4aa80a4e)
GitOrigin-RevId: b9eec43a6d26fecb72270b733266ef31989fec2c
1. Improve the support of other languages in CommentJoinLinesHandler
2. Respect right margin in CommentJoinLinesHandler
3. JoinLineProcessor#convertEndComments: do not convert if only whitespaces are going to be added
4. JoinLineProcessor#adjustWhiteSpace: do not add white-spaces before line-break
Also fixes IDEA-125325 Join lines in custom file type should handle end-of-line comments
GitOrigin-RevId: 392fe2455dcf19d21303a0b42ee85db7f824fa85
There can be several resolve results for import reference. One of the examples is namespace package, when we have to consider elements from several locations for completion.
GitOrigin-RevId: 4ac824ca1f7031b2adda119684d837c6d21b3212
It means that you're not able to write `import tensorflow.<name>` with them.
Remove `tools` from tensorflow >= 2 modules as it is not completed in test but completed in IDE. Should be investigated later.
GitOrigin-RevId: 7dfc22494e701048f99bb0d3a732a0cdc8b7c23e
items defined in the project > items from the standard library > items from other libraries
doesn't start or end with _ > starts with _ > starts with _ > starts and ends with __
items with no leading _ in import path > with leading _ in import path
function/variable/class > module/directory
less items in the import path > more items in the import path
GitOrigin-RevId: 7fba600668d7f7eab4dbd5d3891811cfe2501b89
Since we use "." as a separator there now and getQualifiedName() for classes
and functions already properly handles nested classes and methods, there is
no need to duplicate this logic in PyQualifiedNameProvider.
GitOrigin-RevId: e5101764b84061e3690fc09b399b85a133ae9223
- codestyle improvements
- reuse TypeEvalContext and PyResolveContext
- check PyDunderAllReference specifically to avoid unwanted side effects
- skip resolving PyTargetExpression
- replace references with import alias in the refactoring, instead of the utility method
- added single reference search for PyStringLiteralExpressionImpl
- cleanup obsolete tests
GitOrigin-RevId: 3e33c880a8fe116a5b98583059c83b7dd67e34a2