Pavel Karateev
ed7e7f9ac8
PY-81022 add test for collections.abc compatibility check
...
(cherry picked from commit 52c0b9f915887c8321a1764e4ce1989fc1fd3bea)
IJ-MR-162556
GitOrigin-RevId: 70e646fbfa8ca750c00aa0aaa2e5bb66f977db8c
2025-05-15 11:12:15 +00:00
Pavel Karateev
2ac856a0a3
PY-81022 collections.abc does exist in Python 3.14
...
(cherry picked from commit b8f2468ed436e4ef2644325ad81624515f660317)
IJ-MR-162556
GitOrigin-RevId: 74d9ebdf121d95df8abcc5f297a2f0e614d93cff
2025-05-15 11:12:15 +00:00
Aleksandr.Govenko
9263d8e6f2
PY-79910 Variable incorrectly marked as unused or redeclared without usage in nested try/if blocks
...
When there is no `finally` in try-except statement, use transparent exit instruction to tie all normal exits from try-, else- and except- parts to the next instruction
Merge-request: IJ-MR-158265
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com >
(cherry picked from commit 734581b732a1a558b72811fdda977c470d045cc9)
IJ-MR-158265
GitOrigin-RevId: d3ca0e258fcbd71f014245f05e954c95a3c2a0ca
2025-05-14 17:50:23 +00:00
Vitaly Legchilkin
7ccdb982db
[python] don't resolve package versions for conda in bridge (PY-80823)
...
* conda package manager now is a composite manager and it contains more than 600k packages (both from conda and pypi). resolving version for each package takes too much resources.
GitOrigin-RevId: caa153b999675319cbcdb558e7d96bc2575b3ab5
2025-05-14 12:22:52 +00:00
Pavel Karateev
c9a4513dc7
PY-80976 bump virtualenv from 20.30.0 to 20.31.2 to support Python 3.14
...
(cherry picked from commit cdfb01d04c6343c67baafab1487e6e455287d924)
IJ-MR-162583
GitOrigin-RevId: c9e2ec8532421e64c17c00dcab1f9a4b8e398346
2025-05-12 15:40:38 +00:00
Aleksandr.Govenko
d8f57b77c6
PY-80524 Explicit return statement expected false positive for an if inside try / except
...
(cherry picked from commit 6877fc7b34622d7ae884233af96e06ea92c918c1)
IJ-MR-161824
GitOrigin-RevId: 8c3219ea8bb8f547f7c314af8cb0d432c042cd7c
2025-05-11 22:28:24 +00:00
Aleksandr.Govenko
a8934362ff
Rename .java to .kt
...
PY-80524
(cherry picked from commit 4693b9762d778b7816bab73a3e24a9b934954559)
IJ-MR-161824
GitOrigin-RevId: 94e27715d8d6b3beb4d126112e5bf030ffc16f6b
2025-05-11 22:28:24 +00:00
Aleksandr.Govenko
7413b91db8
Rename .java to .kt
...
PY-80524
(cherry picked from commit b9e0ea17589e9124d4004fa147fab345c77f6f15)
IJ-MR-161824
GitOrigin-RevId: eff1243abd48f5e0785b6ecb97d88ec94652b26f
2025-05-11 22:28:23 +00:00
Daniil Kalinin
7b3539928c
PY-80860 Correctly recognize Python expression fragments inside template strings with HTML injections
...
GitOrigin-RevId: 8e5250fc40ac9bfc87cc451cd01061d8027d754b
2025-05-09 11:12:02 +00:00
Daniil Kalinin
bc182ae806
PY-79967 Add a couple of tests for template strings to PythonParsingTest
...
GitOrigin-RevId: b760b2c6a0aa93118971c005a7ebe680d0c5000c
2025-05-09 11:12:01 +00:00
Mikhail Golubev
476ec04182
PY-80844 Make the names of the negative tests more explicit
...
(cherry picked from commit 20e1f4c4f380d74ee0400283e6651069c4ad698a)
GitOrigin-RevId: 8b0b1e02e4eb29b0278802092e3c2be17bd27cec
2025-05-09 11:12:01 +00:00
Mikhail Golubev
004fee8632
PY-80844 Disable the intention for converting f-strings into t-strings in Python < 3.14
...
(cherry picked from commit 97162fca82d36958d61641c56315295329018304)
GitOrigin-RevId: bd8a473ec0c175b8c5fdb49feec919c944777e81
2025-05-09 11:12:01 +00:00
Mikhail Golubev
f13659e3d5
PY-80850 Add support for Template strings as arguments of positional and keyword varargs
...
(cherry picked from commit a51c198623553ee9f0975c2b3bf7af0c86c88b7a)
GitOrigin-RevId: 72fbe0ba4137e2f02236979bbd84440ca7616c6a
2025-05-09 11:12:01 +00:00
Mikhail Golubev
388e48d5ad
PY-80850 Insert "t" prefix on completion after "{" in regular strings where Templates are expected
...
(cherry picked from commit 6cc25474c2392b6b5de9958e58bb87db86854c5f)
GitOrigin-RevId: 74d7db586a75a3614481c29873a0a86b33416cc2
2025-05-09 11:12:01 +00:00
Mikhail Golubev
1cc8316591
PY-80844 Add a new intention for converting between f-strings and t-strings
...
(cherry picked from commit be3ab4d72de05a92c986af31ac8e40309d9754b1)
GitOrigin-RevId: fba9757978f5f669aa63e2657a3fcbd2923bec74
2025-05-09 11:12:01 +00:00
Mikhail Golubev
d61627c166
PY-79967 Make PyFormattedStringElement.isFormatted actually check "f" in the prefix
...
Because now PyFormattedStringElement represents both f-strings and t-strings.
(cherry picked from commit d63579976773af811ff5a6c6fcd08e4471ede7d9)
GitOrigin-RevId: 7a2063f68d757dd5e3958819f2becaee3dae821b
2025-05-09 11:12:01 +00:00
Mikhail Golubev
a2b4a71ee3
PY-79967 Fix a test broken due to the new t-string prefix
...
\t' at the end of an invalid f-string started being recognized as a new t-string start.
I've replaced it with another escape sequence, not losing the test's idea.
(cherry picked from commit 6f14435b62eda673165d89f005fbcc4ceb810dc7)
GitOrigin-RevId: 719049691d8aaf864c322e3ab4c5dd42e71fb180
2025-05-09 11:12:01 +00:00
Daniil Kalinin
547c4d4feb
PY-79967 Add a couple of tests for t-strings type
...
(cherry picked from commit 3899f67f814b7a0d197db662d3f64693ef61208a)
GitOrigin-RevId: 75ea78468b2119099b9fdc3cc9058afdd17827e4
2025-05-09 11:12:01 +00:00
Daniil Kalinin
989485f44a
PY-79967 Simplify Template type inference for t-strings
...
(cherry picked from commit 2964402eac2061e0230e612badc790d0d289f469)
GitOrigin-RevId: 74b859ff596970d08c5fd82f9a2a6112468804e1
2025-05-09 11:12:00 +00:00
Daniil Kalinin
51d4206da4
PY-79967 Support HTML injections inside template strings
...
(cherry picked from commit 435d956e12f08c2a51c1f772cdbfa91901135e4b)
GitOrigin-RevId: 179bf452364c943be8c4cc58c263f5cb79935a1d
2025-05-09 11:12:00 +00:00
Daniil Kalinin
328d4cc4e1
PY-79967 Introduce a separate method in PyStringLiteralUtil for t-strings
...
(cherry picked from commit 47b1a84c4331aa127a17e4f934c4b1dc28396cf0)
GitOrigin-RevId: 204f5ba41aa022b672e2d71db83b5bd3327770d4
2025-05-09 11:12:00 +00:00
Daniil Kalinin
f1be127202
PY-79967 Add a test for t-string in PyCompatibilityInspectionTest
...
(cherry picked from commit e431991078a31bd10e934a76e6446a5a5e30f816)
GitOrigin-RevId: da52cba702f089853b64e7687af4964443c53c48
2025-05-09 11:11:59 +00:00
Daniil Kalinin
639b7371fb
PY-79967 Stubs: move string.pyi contents to string/__init__.pyi
...
(cherry picked from commit 12161fa9a897ed9a0322fe69784b3edc67748b43)
GitOrigin-RevId: 66015eeb0fc0c8d0e2e0401826b4101d6498b969
2025-05-09 11:11:59 +00:00
Koudai Aono
5b8c2abc96
PY-79967 Support t-prefixed strings, Related PR: https://github.com/JetBrains/intellij-community/pull/302
...
* Add PYTHON314_PREFIXES to CompatibilityVisitor
* Patch typeshed, add t-string related stubs
* Infer `string.templatelib.Template` type for t-strings instead of plain `str`
(cherry picked from commit 0e913910ab9e0dca4052856b0585ce66265291c0)
GitOrigin-RevId: f03a68ae9aee458a74eccc19c38d8d3e4dc7491a
2025-05-09 11:11:59 +00:00
Nikita.Ashihmin
a806d1beec
PY-80965 Packages: Exception on install from Jupyter output
...
Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com >
(cherry picked from commit b875aaf59a09c358efef3785a59732934687828c)
GitOrigin-RevId: c615b36f24db2bd155058d943b494a9cd8541478
2025-05-09 10:40:58 +00:00
Nikita Pavlenko
1edaf734c4
[PyCharm] Python Console (fix): Removed doubled borders around Variables View. #PY-80915 Fixed
...
(cherry picked from commit 401b8d5b8556778f71317b3ccdec0bb41c4aa4c3)
GitOrigin-RevId: 1042b4205fb375dabdcec813120943037f194f48
2025-05-09 10:40:57 +00:00
Nikita.Ashihmin
51566a3f1d
PY-80847 Jupyter: Improve project creating from template
...
Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com >
(cherry picked from commit 2b7940c12840ac2a82eeff0125de69b0fdc3cc2e)
GitOrigin-RevId: eff8cd70c050b41049b0493825c03bdea6dd6cc2
2025-05-09 10:40:57 +00:00
Nikita.Ashihmin
b186c5b918
PY-80866 Jupyter: Add ballon message for run if package is installing
...
Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com >
(cherry picked from commit 4006a39fcab0a4ebcb876eda01667c391404a631)
GitOrigin-RevId: 3d69022ecaabe3026551fb4add24662c352c344e
2025-05-09 10:40:57 +00:00
Nikita.Ashihmin
83839169cd
PY-80682 Jupyter: Error and statistic is not collected
...
Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com >
(cherry picked from commit 4a43912a20772043c08ec14e6fc39282ea3629da)
GitOrigin-RevId: 2fb4433a615514b1048ec9bbb14b5bf0885934fe
2025-05-09 10:40:57 +00:00
Nikita.Ashihmin
3b0bd68bc4
PY-79958 Python Packages: Improve progress notification
...
(cherry picked from commit 3d68461a0d46a128f89582f536b2917209f35c85)
GitOrigin-RevId: 47a71616e0565180922867c28c58acfc289db22a
2025-05-09 10:40:55 +00:00
Vitaly Legchilkin
c5ca662b4b
[python] implement python package manager actions (PY-79451)
...
* PythonPackageManagerJobService.kt added to manage tool jobs
* Base PythonPackageManagerAction.kt was added to cover all python package manager actions
* Implementations for Poetry / Hatch / uv
* Poetry pyproject.toml watcher was removed (replaced with poetry actions)
(cherry picked from commit 0bbc5a7802826674140ca1c80be27b6cd7d0f59e)
GitOrigin-RevId: d3b6486ca9a24ecd7188e8c5308fb38aae5ed318
2025-05-08 12:48:27 +00:00
Daniil Kalinin
6c6c3f102b
PY-80217 Disable the promotion for PyCharm
...
(cherry picked from commit 9a01d79d86bc5793ed3d55ddcbee8ad561d50f7f)
GitOrigin-RevId: a89adf07d6c829441f7c3580aa34325951d592c8
2025-05-07 16:19:18 +00:00
chbndrhnns
3a81c685bc
PY-54168 Moving class from __init__.py into own module removes it from __all__ attribute
...
(cherry picked from commit 534dfcb5ea6a6289d622236fed7cc859bc5ff030)
IJ-CR-162065
GitOrigin-RevId: 31a86bd9d1d229554c1573e2ba65ebc3539c7b33
2025-05-05 17:42:17 +00:00
Vitaly Legchilkin
ca806c4836
[python][idea] make poetry work again (PY-78930)
...
* replace runBlockingCancellable with pyModalBlocking in old sdk ui (they are on edt without progress job)
* correct setup associatedModulePath for new project in idea
Merge-request: IJ-MR-160193
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com >
(cherry picked from commit e4c229f758b8dd032737290a98f7768829bf6ad5)
# Conflicts:
# community/python/src/com/jetbrains/python/sdk/poetry/poetry.kt
GitOrigin-RevId: 11d8463d2040d1d0806ebbc2f919d671896dcd74
2025-05-05 14:20:51 +00:00
Ilia Zakoulov
93d1dfe183
PY-79430: PythonTracebackFilter should use VirtualFileManager as well to support other file systems, like temp://
...
(cherry picked from commit b6efaaa4bba930221d4efb7d13fdace498ba7b34)
GitOrigin-RevId: 539ed445f06deb3afd6bef39271ad0e272af2392
2025-05-04 23:16:19 +00:00
Mikhail Golubev
b7354185a3
[pycharm] PY-38169 Remove redundant mock files from the test data
...
IJ-MR-159943
(cherry picked from commit 75ddcff9cca3209b93dc9b041e37b6726d264811)
IJ-MR-161809
GitOrigin-RevId: 62ecc76a7ec4b6f544a02528f97bedec4c4fae7a
2025-05-01 14:58:06 +00:00
Mikhail Golubev
e8ad5a580a
[pycharm] PY-38169 In quick documentation display .py sources as the origin for .pyi declarations
...
In particular point that `collection.abc` symbols are defined in _collections_abc.py.
IJ-MR-159943
(cherry picked from commit be9b7c9c72ae668cd59f5981a025bc6de8a8ca90)
IJ-MR-161809
GitOrigin-RevId: 779e3c4e9a2216c366b9ade2817739918420c0f7
2025-05-01 14:58:06 +00:00
Mikhail Golubev
12609db31a
[pycharm] PY-80432 Fix navigation on collections.abc in imports from Typeshed to _collections_abc.py
...
IJ-MR-159943
(cherry picked from commit cc83e34de632c134a81c2d285b3c445ad76d2331)
IJ-MR-161809
GitOrigin-RevId: 66dca55d173d38d0a54df0c51220d0aa6bb5456d
2025-05-01 14:58:06 +00:00
Morgan Bartholomew
11f54723c8
[pycharm] PY-38169 special case definition location for standard collections that are wrong in typeshed
...
IJ-MR-159943
(cherry picked from commit c580a6408408965d909680ddba9b5b062d1c4782)
IJ-MR-161809
GitOrigin-RevId: 819e8f906003c02b80072b7c00c8f9e27e83dad2
2025-05-01 14:58:06 +00:00
Morgan Bartholomew
fa4b4eec34
[pycharm] PY-41827 check for union types in PySimplifyBooleanCheckInspection
...
to avoid ambiguous conditions
(cherry picked from commit f11c08f8dfea453a6676173bae57f96233429970)
IJ-MR-159379
GitOrigin-RevId: b700b1e5e7c077da7b61661d33c2a3aa135d9e21
2025-05-01 02:46:56 +00:00
Nikita Ermolenko
f95fa861c8
JBAI-10776: Enable ml ranking in pythin imports quickfix
...
- Adjusted logic to ensure disabled ranking status prevents model loading.
(cherry picked from commit 5c2bbb0d5b9f8a3ce550d61ce3be57fd07021525)
IJ-CR-161529
GitOrigin-RevId: 05cc72e002dbdaee63504f136515393bcc90b7e4
2025-04-29 16:59:48 +00:00
Nikita Ermolenko
2f530bbbb8
JBAI-10776: Disabled ML-based quick fix imports ranking
...
Set the registry key to the “DISABLED” state. We’re doing this due to an unclear issue with model loading that some users have experienced. We encountered this problem specifically with JetEntry ML models in production. For more details, visit https://youtrack.jetbrains.com/issue/LLM-16032 .
(cherry picked from commit 45b7cafa8df1199cdfb15a7c69b8ee87cff74f05)
IJ-CR-161529
GitOrigin-RevId: eb7879bad1547a0d82b3e62fc36b47fe0979a288
2025-04-29 16:59:48 +00:00
Timur Malanin
4b925afc48
Refactor package managers to support dependency extraction.
...
GitOrigin-RevId: 3b577f961f61562358fe7acf3c79fef4a249680a
2025-04-28 16:23:41 +00:00
Timur Malanin
ff86ab4b82
PY-79792 Refactored repository handling in Python packaging subsystem. Unified repository management by removing redundant methods (packagesFromRepository, allPackages) and standardized package retrieval via getPackages from PyPackageRepository. Updated related classes to align with the new CompositePythonRepositoryManager and PythonRepositoryManager interfaces. Added Test. PY-80168 Replace latest text with real latest version.
...
GitOrigin-RevId: f9d826a84d469c75a0c66f34a308cdde16c2f5b0
2025-04-28 16:23:41 +00:00
Timur Malanin
88d748bbaf
PY-78954 Old code for managing the installation of Python packaging tools has been replaced with a new approach using PipManagementInstaller and provided only for PipPythonPackageManager. Added support for PyPackageManagerUI to uninstallig packages using PythonPackageManagerMoved the isConda utility function to a more appropriate location. Added initialization of sdkAdditionalData with PythonSdkAdditionalData during mock SDK creation, because sdk must be flavor-specific.
...
(cherry picked from commit f4fb9a61293eeae1144c993b4bd161e155bbe7d7)
IJ-MR-161409
GitOrigin-RevId: e34b13429152997a83a70d925627fb54926053ee
2025-04-28 12:36:02 +00:00
Alex Grönholm
de2673cf4f
PY-73139: Fixed interactive mode not detected correctly on Matplotlib 3.9 and later
...
(cherry picked from commit 624d1d0165f87004f36f53a9e561ad03d78955e1)
IJ-MR-161229
GitOrigin-RevId: 3ef0b4aa3c07cc7d95ed737bd26fb63d7169ee36
2025-04-25 15:10:46 +00:00
Aleksandr.Govenko
572d9bc312
PY-78593 NPE: [PyControlFlowBuilder.visitCondition]
...
Merge-request: IJ-MR-158982
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com >
(cherry picked from commit 57f9a497e788f274ba20ccc95ddc07cb88f9c744)
IJ-MR-158982
GitOrigin-RevId: 2abea522a3ca869f49a7f22d73f13194992ad4f1
2025-04-24 20:42:05 +00:00
bogdan.kirilenko
87af3018dc
[PyCharm] PY-80592 added PYTHONIOENCODING utf8 for notebook list command
...
(cherry picked from commit 8748930c8557d470df5e5688d903a2ecfe376314)
IJ-CR-161178
GitOrigin-RevId: e7bf76ddcf9974d02658fa3fe5f301388cd090e0
2025-04-24 19:15:46 +00:00
Aleksandr.Govenko
5bf9f9ff39
PY-80493 Inconsistent return inspection adding "return None" after every line in context manager
...
Merge-request: IJ-MR-160763
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com >
(cherry picked from commit b576e30d433d39e426c8854d3ad485594ac9e958)
IJ-MR-160763
GitOrigin-RevId: cf6a3a4c834ee1df160e1927af1b75eb16eec3dc
2025-04-24 02:27:25 +00:00
Petr
91f3589711
PY-76885 Conformance test failure: constructors_call_metaclass.py
...
Replace the verbatim comment with a link to the spec.
(cherry picked from commit 2c5012babed584cab4f5d9f0bb68e960a76e6bc4)
GitOrigin-RevId: 24f9c9df13b76bec1837922f05f47dd86eda0541
2025-04-23 23:27:31 +00:00