Commit Graph

29727 Commits

Author SHA1 Message Date
Natalia.Murycheva
b2b55f74cd [PyCharm Tables] PY-65513 added float formatting for polars tables
GitOrigin-RevId: 9c868a5cf796b66860c2963d3a2e7036e4b65a59
2024-08-13 14:32:08 +00:00
Natalia.Murycheva
fcec56d275 [PyCharm Tables] PY-65513 fixed NPE for format
GitOrigin-RevId: dc1f96177d8c230bb90474bbe818a9d75a3558fc
2024-08-13 14:32:03 +00:00
Mikhail Golubev
dc5c78e7f9 PY-73780 [fus] Collect Python version enabled for the compatibility inspection
GitOrigin-RevId: 8882995fa43bce79ec85fd3d8bbf4312b5d05076
2024-08-13 11:42:18 +00:00
Andrey Vokin
1be521e041 PY-73099 Support PEP 705 – TypedDict: Read-only items
GitOrigin-RevId: 24820bf7c9362d3b675ebfca16805744404ac2e9
2024-08-13 06:16:19 +00:00
Andrey Vokin
f4a04d15b6 PY-73099 Support PEP 705 – TypedDict: Read-only items
support for "ReadOnly" qualifier in chain with "Required" and "NotRequired"

GitOrigin-RevId: 4ee6d82f7153d4b65217acb34acc71c4b6c20dc6
2024-08-13 06:16:19 +00:00
Ilya.Kazakevich
ced5d94e9f PY-75100, PY-74236: Use default modality state.
We can't use `nonModal` here as we are in a modal dialog already, but any isn't good either because we need to access a workspace

GitOrigin-RevId: eefde20c1ea9c4ac3bcf1ef3a9fe2f515cc7d33c
2024-08-12 23:13:00 +00:00
Dmitriy.Panov
fe99f89930 IJI-1455 reporting build steps of distribution build test as TeamCity tests
GitOrigin-RevId: a7837fe388570ae8be635dd57ed1fe182441c3cf
2024-08-12 22:14:32 +00:00
Dmitriy.Panov
ecce5f78de IJI-1455 wrapping each span tree into a TeamCity flow tree
GitOrigin-RevId: 5eae29253eea252b3f39d82b75dbdb1dddc44773
2024-08-12 22:14:32 +00:00
Ilya.Kazakevich
b1a4c55771 Python: VirtualEnvReader refactoring: move the same module as PythonSdkUtil, and substitute a couple of methods.
`PythonSdkUtil` duplicates VER logic. One Jython-specific thing was also removed as we do not need Jython anymore

GitOrigin-RevId: 658fc42b485ac074a6d89fce3c7408e51cdc8f95
2024-08-12 20:54:06 +00:00
Ilya.Kazakevich
4fa90efbce Python: VirtualEnvReader refactoring
1. Move constant to decouple from other classes
2. newtypes instead of path
3. no need to have more than 1 python binary

GitOrigin-RevId: 277cc1e6ffbb681642b1148f7f5c8f8867833d8c
2024-08-12 16:52:42 +00:00
Daniil Kalinin
45b39c3607 PY-73906 correct packages names for scikit-learn and opencv-python
GitOrigin-RevId: 7c03177c80ef0a3f4371d2e4b9d1b46d7d784b55
2024-08-12 15:38:17 +00:00
Vladimir Lezhnev
279d23bd2a PY-73911: Delete hardly used three-argument createStringLiteralFromString
GitOrigin-RevId: 0c796ca5ccf8be2c5ac42f2eda80acaf12b770db
2024-08-12 12:33:11 +00:00
Vladimir Lezhnev
3bcabcf4a0 PY-73911: fix "the inserted app is double-quoted" issue
GitOrigin-RevId: e22cadbea69abbfaf312b67bce3a82b9190912b7
2024-08-12 12:33:11 +00:00
Petr
a3608ebd22 PY-34617 Remove if stubs
GitOrigin-RevId: 13f49394e92daca80af9c82ac9ac1a439a6ae1f5
2024-08-12 09:37:32 +00:00
ekaterina.itsenko
d133b6a9d4 [pycharm] PY-74373 Jupyter Outputs(bug): Remove unnecessary case
GitOrigin-RevId: a01bb58c1f8dfdfc77cb5a962ef90e11d2929ae1
2024-08-12 01:46:29 +00:00
Ilya.Kazakevich
9a305d4fb2 Remove unused code: the only plugin that used it is already updated, and incompatible with master
GitOrigin-RevId: 9bc0e383bd748e08ebd4886b585ccbf0afad9155
2024-08-10 16:33:24 +00:00
Ilya.Kazakevich
4bd20c2bf0 Remove unused code
GitOrigin-RevId: c44b72091241dcbb4458418c330958fbd1cc00f6
2024-08-10 02:13:54 +00:00
Nikita.Ashihmin
a4faced816 PY-74648 Sci-view(sec): Add additional token for sci view
GitOrigin-RevId: 231dbc87d1aaa9fa753a34fc3b13e10713e366e6
2024-08-10 00:27:01 +00:00
Max Medvedev
c795cec244 IJPL-155874 Make most of the spellchecking strategies dumb aware
If you see any problems with your spellchecking strategy, please feel free to remove DumbAware from it. Or, you can make it dumb-aware by avoiding using indexes in dumb mode

The only strategies that are not DumbAware at the moment are:
- JavaSpellcheckingStrategy
- JSSpellCheckingStrategy

GitOrigin-RevId: 74781cf1ebd9b58669396bf7b1c03a839019f12b
2024-08-09 20:25:06 +00:00
Ilya Kazakevich
6d1f3800dd PY-74425: Detect system pythons + pythons on .virtualenvs with NPW
`PythonSdkFlavor` detects pythons.

It uses `VirtualEnvReader` under the hood (see virtual env flavor) and system pythons (see other flavors).

We use it in `PythonLocalAddInterpreterModel` and cover it with tests

PY-74425 WIP, PY-74236: `VirtualEnvReader` shouldn't return `null` nor should it check for dir existence, use `getVEnvRootDir` as a default dir for venv.

The whole logic behind `VirtualEnvReader` is the following: we check for some env variable, and if it points to the correct path -- we use it. We fall back to the home directory otherwise.

Directory doesn't need to exist (hence, no need to check `isDirectory`) because a client might always create it.

Even worse: directory would probably not exist on a fresh OS, but a user still wants to create virtual envs there.

PY-74425 WIP: Encapsulate python names and patterns inside `VirtualEnvReader`.

`VirtualEnvReader` seems to be the main entry point to look for virtual envs on the local file system.

Historically, flavors did that, so they had a set of names and patterns to filter python by name, however:

1. `UnixPythonSdkFlavor` had named for **nix only, and `VirtualEnvSdkFlavor` had names both for Windows and **nix. It is unlikely to see a `.exe ` file on **nix or file, without an extension on Windows, so this check is useless and broken (`VirtualEnvSdkFlavor` checks for both names on both OSes)

2. `UnixPythonSdkFlavor` had regex to filter Python2, but this python was removed 4 years ago and could hardly be met on any new OS; hence this check is useless.

3. New Project Wizard needs to find pythons, but knows nothing about names and patterns.


Merge-request: IJ-MR-142040
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: ce649b4f12f7c7b60a25d8e1fb1222e075337844
2024-08-09 19:46:31 +00:00
Vladimir Koshelev
e6d2119369 [pycharm] make PyHighlightExitPointsHandlerFactory and PyHighlightExitPointsHandler DumbAware
GitOrigin-RevId: 761fdaa9a56433b51482a41a51e328fffc485397
2024-08-09 10:22:42 +00:00
Andrey Vokin
80934bca38 PY-73263 Python 3.13 Support - Code Insight - Typeshed
update class enumerate

GitOrigin-RevId: 95fc30b01c3c99144fec4f36188dc28875b3dc42
2024-08-08 21:53:20 +00:00
Pavel Karateev
b021da6f13 PCQA-510 Update Miniconda version for env tests to 24.5.0 Python 3.12
(cherry picked from commit 0d5e2044bff70313e6f7846661b26e9f5e9d153f)

IJ-MR-141999

GitOrigin-RevId: 066fedd39ef1b1f87b082e2a5f4a53321e924cfa
2024-08-08 20:02:15 +00:00
Natalia.Murycheva
c9f04870bc [PyCharm Tables] PY-65513 reversed automatic imports optimizing
GitOrigin-RevId: e718957ac2bc5fb70b2d0d742e41e832086fafef
2024-08-08 10:39:40 +00:00
Daniil Kalinin
abb3db3cbb PY-73906 Implement a new PyCharm Pro editor advertising notification using a plugin suggestion mechanism
GitOrigin-RevId: 1bbdad77006dfb4fe383ff21790f6aa55bdfb9bc
2024-08-08 09:20:09 +00:00
Daniil Kalinin
3e43684ba4 PY-73906 Sunset the old PyCharm Pro advertisement implementation
GitOrigin-RevId: d26c1a980b4827932bc28e11d04c28726cdd14f7
2024-08-08 09:20:09 +00:00
Ilya.Kazakevich
98f607923d Use SystemProperties instead of bare user.home
GitOrigin-RevId: cbbb580ae4ea5503bc9b4f600187949081884463
2024-08-08 03:54:11 +00:00
Ilya.Kazakevich
d165cae696 Python: Refactor similar params to PyInterpreterModelParams
It would be easier to add a new one

GitOrigin-RevId: ff6f57926494481485807ac1a93f0fb1553f7ee2
2024-08-08 01:09:31 +00:00
Ilya.Kazakevich
7c492759d4 Python: VirtualEnvReader refactoring, mostly decorative:
1. Use a map instead of getter.
2. All functions that access IO must have a BG thread requirement.

GitOrigin-RevId: 03299dcf8c8a8722f39aa90a5777c616aaa2ade1
2024-08-08 01:09:31 +00:00
Natalia.Murycheva
37494df466 [PyCharm Tables] PY-65513 fixed debugger case
* fixed a case when we open Data View from a debugger variable view

GitOrigin-RevId: 2dd0f9383747692b13a60b57980a1f24ad590832
2024-08-07 18:32:28 +00:00
Pavel Karateev
877b9af14a PCQA-512 Set PyPep8Inspection highlighting level to weak warning
* PEP 8 inspection has "No highlighting" severity after PY-73129
* Let's set it back to "Weak Warning" for the tests


(cherry picked from commit 843bab9ca238e7f29a45374043d5d6e337629bc4)

IJ-MR-141929

GitOrigin-RevId: 79d0fb7d61ef1d443c5bcc1ad943731f5ecec290
2024-08-07 10:45:01 +00:00
Andrey Vokin
09ac564e51 PY-73263 Python 3.13 Support - Code Insight - Typeshed
PY-73099 Support PEP 705 – TypedDict: Read-only items

GitOrigin-RevId: f9596fdc5d0f6a9318abd4aa1366b0c94a5487fd
2024-08-07 10:13:26 +00:00
Nikita Katkov
aacd74b83b [json] IJPL-159354 Add explicit dependencies on JSON plugin in PyCharm Community
GitOrigin-RevId: 02afec0731cc1c71b812a44023b01d92bd091503
2024-08-06 21:52:25 +00:00
Natalia.Murycheva
6efdf9aa56 [PyCharm Tables] PY-65513 added Python-based formatting for tables in Data View
* supported formatting for float values
* polars is not supported at this moment

GitOrigin-RevId: cbca954fab3a2c08120eae746f34d47bc45550f5
2024-08-06 21:02:32 +00:00
Natalia.Murycheva
c3ab81b96f [PyCharm Tables] PY-74391 Jupyter notebook is unable to load the full value #PY-74391 Fixed
* now we don't ignore do_trim parameter
* fixed take_first_n_coll_elements: added a missed str type

GitOrigin-RevId: 8aa22974050f44fff1605ba66ca20696df9e401b
2024-08-06 10:58:31 +00:00
Peter Gromov
934ecd177b IJPL-148254 Suppress sentence-starting and -ending punctuation errors in multi-sentence literals
GitOrigin-RevId: 79647bfb4c5901a3267e39da86a2ab95e3c32d1a
2024-08-06 09:04:53 +00:00
Ilya.Kazakevich
63ce0c89e5 Python: conda test refactoring + logging increased to catch an error
GitOrigin-RevId: 46d3e4cce082931dff6acb108bd73636e81cd8c9
2024-08-06 00:51:26 +00:00
Peter Gromov
59e0ddc429 IJPL-90547 Suppress missing-space errors in chained references embedded into text
GitOrigin-RevId: 15b545318fb80b90fb7d3c9cae605ebc07729b0a
2024-08-05 21:14:24 +00:00
Ilya.Kazakevich
3821e6ca4c PyCharm: Remove unused code
GitOrigin-RevId: c7a70f3eccebfaf21b9305021bbfea2d5a4494aa
2024-08-05 21:00:02 +00:00
Ilya.Kazakevich
7ad77319e3 PyCharm: Add Poetry support into tests.
Current implementation doesn't destroy envs, created by tests, so it might be useful to create a fixture to do that as it is done for Conda.

This change makes `VanillaPythonEnvExtension` to look for Python with Poetry and install its path to `PropertiesComponent`.

See `PoetryTest` as an example

GitOrigin-RevId: 3d66a46a8e9b80d85e7bf47b1bf27eeb562c218b
2024-08-05 19:13:21 +00:00
Ilya.Kazakevich
2b039aab98 PyCharm: Service moved to the top level as class inside function reported as an error by DevKit.
GitOrigin-RevId: e589fed63401a86b1063aa62d95331dce7f473a4
2024-08-05 19:13:21 +00:00
Ilya Kazakevich
b2fa3aee5a Introduce ModuleOrProject and provide it to the interpreter creation machinery.
Interpreter creation logic might work against a project or a module. In the latter case a project is a module field.

See `ModuleOrProject` for description.

We also added logic to the `PythonAddLocalInterpreterPresenter.basePathForEnv`: it now uses module root if possible.


Merge-request: IJ-MR-141583
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 0ef23feb6a2407331c48b9b69caabefc8625a455
2024-08-05 14:33:51 +00:00
Yuriy Artamonov
40ee9543ab [icons] Eliminate CrossModuleIcons.json
All icons reside in the corresponding modules now

GitOrigin-RevId: c5fe0b11a37256d1cae4d2067f17c6802a7721b8
2024-08-03 10:12:40 +00:00
Vladimir Koshelev
c04b280ded [pycharm] what's new: fix plotly action id
GitOrigin-RevId: 79c8be153b10e0adc3943a1324aff9edcbfa1a91
2024-08-02 18:05:36 +00:00
Andrey Lisin
24ca282a62 PY-73432 Print effective debugger port number to stdout if single port mode enabled
GitOrigin-RevId: ff24636e02c90dc12f288b0ae2ff4700b4907fc7
2024-08-02 15:46:07 +00:00
Andrey Lisin
1843fbcf1c Cleanup: remove redundant usage of AppUIExecutor
GitOrigin-RevId: c81a918fe0916a8178e14ee15879bc590706f02b
2024-08-02 14:00:00 +00:00
Ilya.Kazakevich
84f000f4a9 PyCharm: remove convert-to-conda test because this code was already removed.
All "vanilla" flavours were converted to conda long ago.

GitOrigin-RevId: 1c87c04a3def2d1c3c6d330b6d4be2c429c78854
2024-08-01 20:14:02 +00:00
Ilya.Kazakevich
8b8d3ec168 PyCharm conda test: compare paths, not strings as slashes might be changed in a workspace model
GitOrigin-RevId: 72e2cc58b0f7a416889967543caef96047ad676f
2024-08-01 20:14:02 +00:00
Ilya.Kazakevich
01228fba20 PyCharm: remove supportsPython3 check as any modern framework support it (all impls return true)
GitOrigin-RevId: 06f939ac73ae864a04ee6bdfd09be1e54b5bda5d
2024-08-01 19:52:34 +00:00
Andrey Lisin
fffd1481a0 Minor: simplify array initialization
GitOrigin-RevId: d9bfc50b82e4e2778589c0e0044c2628e0099d8a
2024-08-01 17:36:35 +00:00