11 Commits
Author SHA1 Message Date
Pavel Karateev 2c3f89d873 PY-79802 Fix tests
(cherry picked from commit e423287ff840e04cea0548fcc589d7b7dc37b105)

IJ-MR-157680

GitOrigin-RevId: 16494fb1755b181d31c1ec43752e8fa21a795d51
2025-03-26 12:41:47 +00:00
lada.gagina 47b89847e6 Add language level for Python 3.13 (PY-63375)
GitOrigin-RevId: beb405baf746c1992d51118d660cb8c718deda62
2023-10-12 20:25:28 +00:00
KotlinIsland 45dd0bf0e8 Add language level for Python 3.12
GitOrigin-RevId: 10d24da89149754de63c87ec9edc0a1b7f131f17
2022-11-13 01:47:35 +00:00
KotlinIsland 119696be41 Add language level for Python 3.11 (PY-51300)
GitOrigin-RevId: bc2fd30744ca9c2a8023c718ade4689bfc9fef9b
2021-11-17 15:31:59 +00:00
Semyon Proshev 860672992e Add language level for Python 3.10 (PY-44857)
Additionally several mandatory python versions have been aligned in FutureFeature.

GitOrigin-RevId: bfeba8d465c593c1000ed0f5226a4ab2a918a2bf
2020-10-16 12:24:27 +00:00
Mikhail Golubev 0adac7f9ea i18n: Add initial support in PyCompatibilityInspection
All its warnings are extracted into the bundle, but they are still poorly
adapted for translation. Each of them in constructed from two separate
messages, a common prefix and an individual feature description, with negation
of the main verb being split. Only the first message can vary depending on
the affected versions number, but both parts of the verb need to agree in many
languages other than English. It's not clear how to address it without
overhauling inspection internals, thus it will be revised later.

I also slightly updated the warnings format. Namely, put "version" in plural,
if a warning applies to multiple Python versions, and removed trailing periods
from single-sentence messages.

GitOrigin-RevId: 51e577201b11fb4e8b6967e1f5ad27143ba9f82e
2020-08-19 14:22:06 +00:00
Semyon Proshev 48a4a4a8bc Add Python 3.9 language level (PY-37458)
Additionally, I did the following:

* re-generated lists of supported/unsupported interpreter modules
* updated test data wherever Python versions appear in warnings

GitOrigin-RevId: 66fd298e6051bf91fb894e037a877d0b382da337
2020-03-26 13:31:44 +00:00
Semyon Proshev 8966e016d5 Add Python 3.8 language level (PY-33884)
Additionally, I did the following:

* re-generated lists of supported/unsupported interpreter modules
* updated test data wherever Python versions appear in warnings

Still need to figure out, though, why _bz2/bz2 modules were not found
for some old versions of Python, hence information about their presense
should be updated by hand in versions.xml.
2019-03-19 13:38:12 +03:00
Semyon Proshev 1e07ba1cfa Avoid duplicate messages in compatibility inspection and unsupported features annotator (PY-33516)
Inspection does not register `CompatibilityVisitor` problems for its opened file language because in such a case
`UnsupportedFeatures` will annotate them.
Also `registerOnFirstMatchingVersion` methods were removed because
they could lead to duplication even if languages to register were different.
2019-01-14 17:27:39 +03:00
Semyon Proshev c471398267 Parse and highlight async and await as keywords in Python 3.7+ (PY-28247)
Update compatibility inspection to raise warning only if Python 3.7+ is marked
2018-02-01 15:21:50 +03:00
Mikhail Golubev 532e18e4d9 Add "Py" prefix to AddImportQuickFixTest and several other quick fix tests
otherwise it's easy to overlook it especially considering that there is
also (confusingly) PyAddImportTest
2017-03-21 18:10:12 +03:00