Vladimir Krivosheev
0af2e7b5c5
fix - reduce member visibility (public -> private)
...
GitOrigin-RevId: fe8a4740e27d192798a9fa55ff41112d1b633e49
2022-09-14 15:09:45 +00:00
Ilya.Kazakevich
f71071a634
PY-55110: Support Django project creation on targets.
...
``DjangoProjectCreatorAndConfigurator`` uses ``PythonTask`` which wasn't aware of targets and cast additional data to the legacy remote additional data -> CCE.
It now provides limited support for targets API, although we better get rid of it and migrate to the native targets api.
Merge-request: IJ-MR-94386
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com >
GitOrigin-RevId: 624fed3ff5e64133e6baa665a4a63bbbe1e0c825
2022-09-13 16:13:21 +00:00
Tagir Valeev
96dba3c70c
[python-inspections] EA-657059 - IAE: FileDocumentManagerBase.$$$reportNull$$$0
...
GitOrigin-RevId: 41121836c59691e773add0dffd5d396eebe73665
2022-09-13 12:35:09 +00:00
Tagir Valeev
0b9788793d
[python-inspections] PyChainedComparisonsInspection: reuse SetInspectionOptionFix
...
DontSimplifyStatementsWithConstantInTheMiddleQuickFix was not preview friendly (also did not support undo)
Fixes EA-653089 - SEGSENAE: SideEffectGuard.checkSideEffectAllowed
GitOrigin-RevId: 0a6a3afdd6b96c707ee127b8429ef127afb01954
2022-09-13 12:35:01 +00:00
Tagir Valeev
5929958466
[python-inspections] IgnoreErrorFix: preview-friendly
...
Fixes EA-659085 - SEGSENAE: SideEffectGuard.checkSideEffectAllowed
GitOrigin-RevId: 738ca33f4e8e542d47f66c9b3bce42b9c0453390
2022-09-13 12:34:53 +00:00
Nikolay Chashnikov
a0de92e1f3
cleanup: remove unused deprecated API (IDEA-295370)
...
GitOrigin-RevId: 439b59d8cf266e48f703345e656e4f29e617d00d
2022-09-06 12:45:06 +00:00
Pavel Karateev
a47cf9f44e
PY-55920 Suggest python-slugify for installation
...
GitOrigin-RevId: 0ef316336587d73cd2b79f6862635900ecde5fa6
2022-09-05 20:03:33 +00:00
Vladimir Krivosheev
d94266e6c5
get rid of IntStack in favour of fastutil
...
GitOrigin-RevId: 3807e023514a7c21e43f87875cffc705045c1dec
2022-09-05 10:39:09 +00:00
Mikhail Golubev
48b07b9057
PY-54503 Provide the type of Enum.value when accessed on a type-hinted value
...
GitOrigin-RevId: b8105d28955d5f25dc07bbafedb410ea5821d8b4
2022-09-02 20:51:07 +00:00
Mikhail Golubev
49f40ec3a8
PY-54503 Provide Any as the result type for Enum.value when we cannot access AST
...
GitOrigin-RevId: 307b05d8b9910bd37b85898fa82086b10c14a7cb
2022-09-02 20:51:05 +00:00
Mikhail Golubev
59e79c3c7c
PY-54503 Provide the result type for Enum[...].value and Enum(...).value
...
Precise types can be inferred only over AST if it's accessible.
I had to move PyStdlibTypeProvider higher in the provider's hierarchy
so that it could override types coming from Typeshed, otherwise we
infer enum.property type for the "value" attribute.
GitOrigin-RevId: 8727e080cfc06d0edda13eccfd601601dc661da9
2022-09-02 20:51:03 +00:00
Mikhail Golubev
0fc1981b5c
PY-53388 Override the callable type for enum.auto() from Typeshed stubs
...
GitOrigin-RevId: 132e934de4da01983bebc55fcb1d3440d7053249
2022-09-02 20:51:00 +00:00
Anton Bragin
69cdd73cf7
DS-3171 IJ-CR-21022 Code review fixes
...
GitOrigin-RevId: 02ecb11b49d6061ca077779870e3c6ef4b92d015
2022-09-02 11:20:21 +00:00
Vladimir Krivosheev
c4a36c563d
migrate build scripts to coroutines (part 2)
...
GitOrigin-RevId: ea917d829c52510e91602f27d77ad48e0e3e01ac
2022-08-31 17:22:22 +00:00
Nikolay Chashnikov
2a38cd76a3
[plugins] get rid of usages of DirectoryIndex
...
DirectoryIndex is an internal API and isn't supposed to be used from plugins. Its API may change while we are working on updating the underlying structures incrementally (IDEA-276394).
GitOrigin-RevId: f87471f9a0352edea82b03d0ca5baad117094a75
2022-08-26 11:17:55 +00:00
Irina.Fediaeva
cce0ef17d5
PY-16760, PY-28549, PY-35743, PY-55609, PY-46654: Correct resolve of class attributes in docstrings
...
Previously in docstrings we incorrectly recognized references in 'Attributes' section only as instance attribute references. It led to false positive 'Unresolved reference' on class attributes references in docstrings and wrong resolve when using class and instance attributes with the same names. Now we use ReferenceType.VARIABLE to identify both class and instance attribute references in 'Attributes' section and then resolve them with priority of instance attributes. Also fixed wrong resolve of attributes references to constructor parameters.
GitOrigin-RevId: ea10bfb092472c0ab14b77f06efd93093cfcd684
2022-08-25 21:11:57 +00:00
Vladimir Krivosheev
7a8d37f396
Icon class should be not used directly and should be located in ui but not generic modules (part 2)
...
GitOrigin-RevId: e384c1191db993a22286f1c7f2f6f83e410a4a5e
2022-08-25 12:30:11 +00:00
Irina.Fediaeva
2c35b284f9
PY-21883: PR remarks. Show elements from 'Other Parameters' inside 'Parameters' section in Numpy docstrings
...
Removed redundant keyword arguments in parameters section, cosmetics.
GitOrigin-RevId: 213132671cc844eb31a168c4e8a17af169d1aac2
2022-08-24 15:20:53 +00:00
davfsa
680913f146
PY-21883: PR. Show elements from 'Other Parameters' inside 'Parameters' section in Numpy docstrings
...
closes https://github.com/JetBrains/intellij-community/pull/2051
GitOrigin-RevId: 2438d1c9fdf8d90fd2c046c8a9a55c07f6683778
2022-08-24 15:20:52 +00:00
Alexey Kudravtsev
dfc0c7f0a2
cleanup
...
GitOrigin-RevId: a60377ec87e4ba2344f69b9e8d888972fd5ed201
2022-08-24 12:02:37 +00:00
Alexey Kudravtsev
85895e8989
add more SSR: replace stream expression with ContainerUtil call
...
GitOrigin-RevId: 629f61b8d4541fb374dedcbbce2964ddb70dfdf1
2022-08-24 11:15:49 +00:00
Mikhail Golubev
68ecd6048f
PY-46257 Special-case missing __getitem__ on the "type" builtin
...
GitOrigin-RevId: ef377cd103b4dd673d426c0f88d3f0bb6bd9d2e3
2022-08-22 17:01:46 +00:00
Mikhail Golubev
4c5d9a3e5d
PY-47532 Extract PyDataclassNames containing all relevant qualified names
...
GitOrigin-RevId: 8c97dcc701db2b0d57d5f5bb5aff7f4ca6033d50
2022-08-18 16:13:22 +00:00
Mikhail Golubev
84c48c48a9
PY-47532 Support new API and namespace of "attrs" package
...
GitOrigin-RevId: a8a0f909b21cc9f3b95a7b823452599374a943a9
2022-08-18 16:13:12 +00:00
Mikhail Golubev
4964808eb1
PY-47532 Simplify a chain of .let in PyDataclassTypeProvider
...
GitOrigin-RevId: 4466dd43ef0ae2168bc08699ebbde313a3c55d3c
2022-08-18 16:13:02 +00:00
Alexey Kudravtsev
261f9f8cf6
fix "notnull can't be applied to type parameter"
...
GitOrigin-RevId: 52fa57547b5af2f89bea35ad3da70aa25e4fe7b4
2022-08-18 15:07:29 +00:00
Alexey Kudravtsev
82dbf127b8
cleanup: reduce visibility of CommonProblemDescriptorImpl
...
GitOrigin-RevId: 46f481b5785df8f67f15086fcc1fdea7528f0e02
2022-08-16 13:12:15 +00:00
Tagir Valeev
ab98308e0a
Fix warnings
...
GitOrigin-RevId: 3784a54a705a2ef0028975a852323be986d5cafd
2022-08-16 12:11:07 +00:00
Tagir Valeev
accd4283af
Use Stream.toList(); other minor fixes
...
GitOrigin-RevId: 80cd98f05d25a63413085a2c6ee2bd650d7f5716
2022-08-12 09:31:14 +00:00
Tagir Valeev
9038e3f77b
Remove empty and irrelevant javadoc tags
...
GitOrigin-RevId: dcbbb8cff7ef267525129c464769f761d92c2120
2022-08-09 09:41:49 +00:00
Irina.Fediaeva
1e7d7b339d
PY-52281: Fix doc for in, as, from, else keywords when they are inside some statement.
...
IJ-CR-26384
GitOrigin-RevId: 07f7f8c4ce17c4906e9346715f92a9489d1f6c74
2022-08-08 20:23:28 +00:00
andrey.matveev
04f5b85d4a
PY-29898 Impl resolve keyword argument to dataclass attribute
...
Also fix PY-55231
Add declarationElement field to callable parameter to resolve parameters to class fields in dataclasses
GitOrigin-RevId: ae2703b958061df6f2d74b19920a6e3be2a084f6
2022-08-05 11:19:33 +00:00
Alexey Kudravtsev
1eb9d733b6
notnull
...
GitOrigin-RevId: e58b583ace00eda9677e02ef21a7e02469ab2e23
2022-08-02 12:29:47 +00:00
andrey.matveev
b7398bb63d
PY-10719 Fix add import above import with noinspection comment
...
GitOrigin-RevId: 6dd79b10e56b9e9e2eee76c83d5974dee43446a1
2022-07-26 13:17:54 +00:00
Daniil Kalinin
f0687cf116
PY-54540 No error when ClassVar contains type variables
...
Inspection that checks if ClassVar contains type variables which is not allowed
Tests for it
Merge-request: IJ-MR-25493
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com >
GitOrigin-RevId: 0fcf81aca7416c04488cf389aba107588561554d
2022-07-26 12:16:31 +00:00
Mikhail Golubev
5b0ab3eb33
PY-29435 Treat the "__debug__" name as having unknown boolean value
...
GitOrigin-RevId: 4fdb08f28e21f9a08cf99491219d6cca0480d027
2022-07-22 16:33:36 +00:00
andrey.matveev
e3d08d174d
PY-29435 Define __debug__ as true to avoid inspection code unreachable
...
GitOrigin-RevId: 2cf319b7e0e4668c74f1ac05acc4161fbe3154fe
2022-07-22 13:30:34 +00:00
Mikhail Golubev
7d0f963d99
PY-54712 Make AddParameterQuickFix work with preview
...
GitOrigin-RevId: 17c74a35c346ad179d423a61f1bb7f7d74fa74e4
2022-07-21 21:19:18 +00:00
Mikhail Golubev
b717611b1e
PY-54712 Make UnresolvedRefCreateFunctionQuickFix work with preview
...
GitOrigin-RevId: 0039ae56b46f44eab34eb644b6d0b4d08068c976
2022-07-21 21:19:15 +00:00
Mikhail Golubev
d3ab277998
PY-54712 Make UnresolvedReferenceAddSelfQuickFix work with preview
...
GitOrigin-RevId: ac7a66b29695384e82afea67e05484cd1177dcc5
2022-07-21 21:19:12 +00:00
Mikhail Golubev
55e7b63a37
PY-54712 Make UnresolvedRefTrueFalseQuickFix work with preview
...
GitOrigin-RevId: ea3399e0bf080d1f3d2d36f28b3cd52cb0b9be4a
2022-07-21 21:19:09 +00:00
Mikhail Golubev
29ebc4d54d
Add nullability annotations and fix possible NPE in ChangeTypeQuickFix
...
GitOrigin-RevId: 71c7cf075cab612a9377958df1fb82335e69c8f7
2022-07-21 21:19:07 +00:00
Mikhail Golubev
527bf14a02
PY-54712 Make ChangeTypeQuickFix work with preview
...
GitOrigin-RevId: 26c988c75355f79bb237230098820ad597d8bb34
2022-07-21 21:19:04 +00:00
Mikhail Golubev
1f0eb4c8e2
PY-54712 Make RemoveArgumentEqualDefaultQuickFix work with preview
...
GitOrigin-RevId: 64f3ea76f0413cd492edb9177c92d1db9e8043eb
2022-07-21 21:19:01 +00:00
Mikhail Golubev
5925045fe1
PY-54712 Disable preview for IgnoreBaseClassQuickFix
...
GitOrigin-RevId: 3d533c52c826729724b08661f8b8758d89fa8305
2022-07-21 21:18:56 +00:00
Mikhail Golubev
7df7e51230
PY-54712 Make DocstringQuickFix work with preview
...
I had to update PyUtil.updateDocumentUnblockedAndCommitted to work properly
with non-physical files. In turn, it suddenly made an old formatting test
properly apply PyTrailingBlankLinesPostFormatProcessor to its target file.
GitOrigin-RevId: 0c90a3f6000b5f451697b5743930ef1f84a58b63
2022-07-21 21:18:53 +00:00
Mikhail Golubev
9bcdf08a3e
PY-54712 Make AutoImportQuickFix work with preview
...
I had to extract AutoImportLocallyQuickFix because, otherwise, an implicit
reference to "this" of an enclosing class in an inner class prevents the default
preview machinery from working (there is no way to annotate such a field).
GitOrigin-RevId: 82b4e64f19f9fc47c95726e02d3ee9880f1e7278
2022-07-21 21:18:50 +00:00
Mikhail Golubev
cf0251112f
PY-54712 Make PyMakeFunctionReturnTypeQuickFix work with preview
...
GitOrigin-RevId: f315451be3844c33bc4585a2439010fc9b859e54
2022-07-21 21:18:48 +00:00
Mikhail Golubev
2a7dc84efe
PY-54712 Make CreateClassQuickFix work with preview
...
GitOrigin-RevId: 5adc8af40e108b582f578fce5ef87d88bfa1c995
2022-07-21 21:18:45 +00:00
Mikhail Golubev
a27e97d175
PY-54712 Make ListCreationQuickFix work with preview
...
GitOrigin-RevId: e8265ef1cad6701dd79f772a7df39c4c60fae64d
2022-07-21 21:18:42 +00:00