Commit Graph

28724 Commits

Author SHA1 Message Date
Georgii Ustinov
286bf8bddf Migrate RemoveDecoratorQuickFix and RemoveTrailingSemicolonQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 8b76c57a5224e18d9cf6f12f62862ecc6d7b03ed
2023-12-18 21:24:23 +00:00
Georgii Ustinov
e69a429eb3 Migrate PyUpdatePropertySignatureQuickFix and RedundantParenthesesQuickFix to ModCommand
PY-65297

GitOrigin-RevId: c8c81e09ff6459f385437da50acc481afcd991ae
2023-12-18 21:24:19 +00:00
Georgii Ustinov
530b79d991 Migrate all QuickFixes in PyTypeHintsInspection
PY-65297

GitOrigin-RevId: e71c1074779ea706511fff07db0053f1335f6cc4
2023-12-18 21:24:16 +00:00
Georgii Ustinov
4d1b5b0bd0 Migrate AddFixtureToFuncParametersQuickFix and PyUnpackTypeVarTupleQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 2695f20eb27475245fb48a93c5ee874041e54463
2023-12-18 21:24:12 +00:00
Georgii Ustinov
58cf31d9f8 Migrate PyRemoveWithTargetQuickFix and PyReplaceStarByUnpackQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 1530cfd4c31b48f980953538f3211c41902076bd
2023-12-18 15:25:34 +00:00
Georgii Ustinov
4f7601c1ed Migrate PyRemoveExceptionTargetQuickFix and PyRemoveUnderscoresInNumericLiteralsQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 1d0f3761b74a11403a729e6504e46dc7e83ef0a7
2023-12-18 15:25:30 +00:00
Georgii Ustinov
7131f79163 Migrate PyRemoveCallQuickFix and PyRemoveDictKeyQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 79257ed2504ca8e50a1b8b13bda18d5ea20f2b03
2023-12-18 15:25:26 +00:00
Georgii Ustinov
959ae914d8 Remove unnecessary updater#getWritable and fix incorrect cast in ChangeTypeQuickFix#applyFix
PY-65297

GitOrigin-RevId: 417550a121276358adc7297b6c5b301da9249bff
2023-12-18 10:34:53 +00:00
Georgii Ustinov
8eb11fcea7 Revert PipEnvInstallQuickFix and PoetryInstallQuickFix migration to ModCommand
PY-65297

GitOrigin-RevId: 76d047e6db116d57271a666d2856d4168136c838
2023-12-18 10:34:51 +00:00
Georgii Ustinov
1c3b5dba6b Replace template builder updater#templateBuilder in PyChangeBaseClassQuickFix and remove unnecessary updater#getWritable
PY-65297

GitOrigin-RevId: 3b0409ed601be86543f3ed5cd6e46d5fd096d076
2023-12-18 10:34:49 +00:00
Anton Lobov
3f30ddebff [fleet] inline refactoring for python
GitOrigin-RevId: 8b17bfd232e7daaa7203b156724ec402252000d7
2023-12-15 21:02:51 +00:00
Anton Lobov
1bd891a46d [fleet] inline refactoring for python wip
GitOrigin-RevId: 1e23109e11a5f1bc67aa9d0159353a5bf827867f
2023-12-15 21:02:51 +00:00
Ilya.Kazakevich
f258c6b0fc Fix tests: do not create SDK 2 times
GitOrigin-RevId: cfc0f421a9fea2df061b97a5f53bdfa4f805e52f
2023-12-15 19:01:07 +00:00
Georgii Ustinov
961912e461 Migrate PyDefaultArgumentQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 2d45eb8ccab51534ba66acd967f01bff75b1a75f
2023-12-15 16:55:22 +00:00
Georgii Ustinov
3ce36da93a Migrate PyRemoveStatementQuickFix and ReplaceWithWildCard to ModCommand
PY-65297

GitOrigin-RevId: 4c236b21d8c56d587ce7bdf79b53b4a8d7d3c156
2023-12-15 16:55:19 +00:00
Georgii Ustinov
3462c14b79 Migrate PyRemoveAssignmentQuickFix and PyRemoveAssignmentStatementTargetQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 3e82a3b937313ee7aa154f96a1fab6645bbd7f69
2023-12-15 16:55:15 +00:00
Georgii Ustinov
860fbc54eb Migrate PyChangeToSameDirectoryImportQuickFix and PyRemoveArgumentQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 46efa89cb87098ed92e8b6b40ebefd1c8436e7c4
2023-12-15 16:55:12 +00:00
Georgii Ustinov
de50767e66 Change way to acquire Document instance in PyUtil#onSameLine and PyPsiRefactoringUtil#addElementToStatementList
PY-65297

GitOrigin-RevId: 5c9f0b1034c6384be9657ec6dea79b4444982345
2023-12-15 16:55:08 +00:00
Georgii Ustinov
742cb15a0c Migrate PyMoveExceptQuickFix and PyPandasSeriesToListInspection to ModCommand
PY-65297

GitOrigin-RevId: 32f2da4c062dc1d01c31c4210ef0db4f2eba8d74
2023-12-15 16:55:05 +00:00
Georgii Ustinov
154b1f4d97 Remove unused string in RestRoleInspection
PY-65297

GitOrigin-RevId: 497ba94642fd3be2c6f002c10e2eb20e6e8caf50
2023-12-15 16:55:01 +00:00
Georgii Ustinov
050cc32fec Migrate ChangeTypeQuickFix and PyMoveAttributeToInitQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 52f681116076ee12e18d24e19a6c1383a53b3d31
2023-12-15 16:54:57 +00:00
Georgii Ustinov
eb35f95a8d Migrate PyCreatePropertyQuickFix and PyDefaultArgumentQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 7c5579c5f2f2a6f06ada8306eb82573ba684cbcf
2023-12-15 16:54:54 +00:00
Kseniia Iashina
08e573f0c2 [python] PY-65250 Add maven publishing for community modules
GitOrigin-RevId: db6b101c741305b10433cdf938c05e484c881c77
2023-12-15 16:28:23 +00:00
Ilya.Kazakevich
da375b465b Fix tests: do not create SDK 2 times
GitOrigin-RevId: 362ebe2df3428ed5068d3af5e0593fbd9e85ed8f
2023-12-15 15:52:58 +00:00
Tagir Valeev
fcd18947fa [mod-commands] Mark API as non-experimental (except several specific methods/classes)
Also: rename moveTo -> moveCaretTo

GitOrigin-RevId: 831c19425697bc0729a8f6f324fc13fdcff2507c
2023-12-15 14:38:54 +00:00
Andrey Cherkasov
b46f106dce Fix the "Inner class may be 'static'" warning
GitOrigin-RevId: 2d7ea3be999e8750673731dab810af16f765c18f
2023-12-15 11:21:49 +00:00
Mikhail Mazurkevich
9ba87a62bf [python] IJPL-165 Commit modifiable model under WA
GitOrigin-RevId: 0198a55da4d8eee1de2ea4108263b407fd13c0eb
2023-12-15 09:57:54 +00:00
Mikhail Mazurkevich
3dc9ebfec4 [python] IJPL-165 Get rid of creating SDK with the same path twice
In python tests we have cases when SDK which was previously created at `com.jetbrains.env.PyEnvTaskRunner.getSdk` created one more time at `com.jetbrains.env.PyEnvTaskRunner#runTask:104`. So, simple check was added to avoid such cases

GitOrigin-RevId: 8a4836182861dd8421b728b4361977cad68fcbf3
2023-12-14 19:10:55 +00:00
Andrey Cherkasov
24adef8e2a Resolve warnings about 'protected' members in a 'final' classes
GitOrigin-RevId: 5d7c04b6371be1f2cc924a86614919ab6ee5b642
2023-12-14 17:36:45 +00:00
Aleksei Kniazev
946d0af64e [python] fixed infinite loading of base interpreters in PyCharm and DataSpell (PY-65214, DS-6089)
- fixed nullability issues after changes in ProjectJdkImpl
- remove write action from PyDetectedSdk creation -- detected Sdk are not yet saved in jdk.table

GitOrigin-RevId: 6b77df2621ff0ee469a584e6fa9504ddd56b4b37
2023-12-14 16:25:29 +00:00
Georgii Ustinov
bbb6589286 Migrate PyChangeBaseClassQuickFix and PyConvertToNewStyleQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 9c49c4e2d2e304af0bf57a848dd1f500877d2002
2023-12-14 16:18:11 +00:00
Georgii Ustinov
74ebdf2b45 Migrate PyAddImportFix and PoetryInstallQuickFix to ModCommand
PY-65297

GitOrigin-RevId: c1a7d08dcd9f2ad5827cca878aa7806e3c360e42
2023-12-14 16:18:07 +00:00
Georgii Ustinov
799687313b Migrate ChainedComparisonsQuickFix and PipEnvInstallQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 0f5d1a4e2fb436b0685b4c102d4c72b7ac2e6ebb
2023-12-14 16:18:04 +00:00
Georgii Ustinov
fdbc6c4b57 Remove unnecessary getWritable usage in DocstringQuickFix
PY-65297

GitOrigin-RevId: 65883333011e0e54c8bed7d51ad1bb03e55ab6c5
2023-12-14 14:36:55 +00:00
Georgii Ustinov
995905b519 Refactor usage of ModCommand in AddEncodingQuickFix and RestRoleInspection
PY-65297

GitOrigin-RevId: e5ad7bfcec3b16ac249c62320e6811df0d7571cc
2023-12-14 14:36:52 +00:00
Egor.Eliseev
e9802d2cb8 PY-62172 Add support for imported using wildcard pytest fixture resolving
Merge-request: IJ-MR-122222
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: f6baf79341bb54c28b2ef6f3faaafa4385266e05
2023-12-14 13:39:07 +00:00
Georgii Ustinov
4e9ee8c84a Migrate PyAddSpecifierToFormatQuickFix and PyAsyncCallInspection to ModCommand
PY-65297

GitOrigin-RevId: 40cb37ccf6e2bedeb43d2b817b188b13b1aa8c1d
2023-12-14 13:27:25 +00:00
Georgii Ustinov
9447b99d19 Migrate PyAddExceptionSuperClassQuickFix and PyAddPropertyForFieldQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 9d04f69bb65599446b01d7378038ff34c701dc4e
2023-12-14 13:27:21 +00:00
Georgii Ustinov
ad53c0eb84 Migrate AddABCToSuperclassesQuickFix and SetABCMetaclassQuickFix to ModCommand
PY-65297

GitOrigin-RevId: ae71b54f9cf4338fc924b82ae6ad191f66f3ee82
2023-12-14 13:27:18 +00:00
Georgii Ustinov
9b1f931ee3 Migrate ListCreationQuickFix and MoveFromFutureImportQuickFix to ModCommand
PY-65297

GitOrigin-RevId: b0812c13487911d244f70ab601000028f4255467
2023-12-14 13:27:14 +00:00
Tagir Valeev
3614b742bb final method in final class warning fixed
GitOrigin-RevId: eeec0047e89c8bcd9768022405964716ac0bb75e
2023-12-14 12:11:00 +00:00
Georgii Ustinov
736b25e25b Revert migration to ChainedComparisonsQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 108f90cbf3015fe180be370d6a35bb4b6f5c1378
2023-12-14 10:55:37 +00:00
Georgii Ustinov
9705d3340a Migrate DictCreationQuickFix and DocstringQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 09ff6c04469618ecbd151c1f446cf0504f87256c
2023-12-14 10:55:34 +00:00
Georgii Ustinov
79726c4ac3 Migrate ConvertDocstringQuickFix, ReplaceWithOldStyleUnionQuickFix and AddFromFutureImportAnnotationsQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 3eba23b8c7dc5108de1887377a2db555c2af59e4
2023-12-14 10:55:31 +00:00
Georgii Ustinov
6c4e999458 Migrate ChainedComparisonsQuickFix and ComparisonWithNoneQuickFix to ModCommand
PY-65297

GitOrigin-RevId: d33ffbf5e4044ac926bea8f8177c899e7d76e964
2023-12-14 10:55:27 +00:00
Andrey Cherkasov
06342a71b3 [python] Make extension classes final
GitOrigin-RevId: d650b5e733d806a06911f942cfd1dec70197b061
2023-12-13 20:02:09 +00:00
Andrey Lisin
76307b27f5 Cleanup: unused constructor
GitOrigin-RevId: ad0967a2ed14bbdbbdd93d9e3a8255c7192d9d1c
2023-12-13 17:49:07 +00:00
Georgii Ustinov
661a41eea5 Migrate AddSelfQuickFix and AugmentedAssignmentQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 0ed78e7c27345709efeb552186eac79e907dfce5
2023-12-13 14:57:03 +00:00
Georgii Ustinov
47441f39d7 Migrate AddGlobalQuickFix and AddIgnoredRoleFix to ModCommand
PY-65297

GitOrigin-RevId: 91ab4653fbd2d4f5fe3df6d888ce0f2b8adb0ace
2023-12-13 14:56:59 +00:00
Georgii Ustinov
0512d0af8c Migrate AddCallSuperQuickFix and AddEncodingQuickFix to ModCommand
PY-65297

GitOrigin-RevId: 25e5ed81311c02ce04396e1be42f49edfa4c7173
2023-12-13 14:56:55 +00:00