Commit Graph

39 Commits

Author SHA1 Message Date
Lada Gagina
8a29a375f3 PY-40431 Extract messages to the message bundles for i18n
GitOrigin-RevId: c7b652bab17e0b37959d71fe7335212395212bdb
2020-02-18 20:57:58 +00:00
Ilya.Kazakevich
33b437d620 i18n
GitOrigin-RevId: ce5f135d452f84f2a88c7db227ac445128ee1023
2020-02-17 15:20:42 +00:00
Semyon Proshev
8f58988590 i18n
GitOrigin-RevId: c6b70355ca538e522a1b896f412c972fe7aa56e9
2020-02-13 16:19:54 +00:00
Mikhail Khorkov
eae34dc336 PY-14844 Add integer suffix support for Cython
Cython supports C-style integer suffix (u, l, ll). I added them to Python lexer and annotator checker to highlight them in Python language.

More information:

- https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#differences-between-c-and-cython-expressions

- https://en.cppreference.com/w/cpp/language/integer_literal

GitOrigin-RevId: 97d7bcb19239f931d9ed5e5746aaed84ac09cbc8
2020-02-05 08:01:18 +00:00
Vladimir Lagunov
fbded97076 Improve methods for overriding availability of PyUnresolvedReferencesInspection
GitOrigin-RevId: abf66a0b0a084395989f83d23fbc7f1825e458f7
2020-01-31 10:08:33 +00:00
Mikhail Golubev
be2d55e603 PY-32123 Ignore escape sequences in raw f-strings by adding special token type for their text
GitOrigin-RevId: 0b15201c60ac56daa45f22bb5ff3c1f8836efee3
2020-01-28 16:04:27 +00:00
Vladimir Lagunov
54a1577231 IDEA-CR-57633: PyInspectionExtension can be forcibly enabled regardless of SDK, IDE version and any other conditions.
(cherry picked from commit 45557b86c2430fa5fb109fd51e76f0b2af282999)

GitOrigin-RevId: c3c0eafc17dd27e2c826fabb4ccea5ebea26a29c
2020-01-23 05:33:27 +00:00
Vladimir Krivosheev
ba98224912 remove author (only some, where it is ok)
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
2020-01-21 17:36:52 +00:00
Tagir Valeev
78a91459c4 Array annotations changed to type-use style (not compilable now)
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Stanislav Utikeev
ae21cd4bf7 [analysisTool] Move some of EPs used in analysis tool to proper XMLs
- Move .pyi filetype definition to python-core-common.xml as it is registered via CoreFileTypeRegistry
- Move referencesSearch to Indexing.xml

GitOrigin-RevId: 1e8e38d0c371f0042ce517391da10bbc8bbcc886
2020-01-09 15:10:17 +00:00
Ilya.Kazakevich
f8544fb8ee PY-26062, PY-38540, PY-25935: Various Django performance improvements.
* Do not provide references for "open" in Django (already done by another code)
* Do not use full resolve for class and functions names. In most cases "resolve", "ManyToMany" and "ModelForm" are imported as-is, not with aliases.

GitOrigin-RevId: 8a0803e6b19482654c91186aa9754ea3d91da282
2019-12-18 17:32:32 +00:00
Petr Golubev
81eb2387a3 move Wildcard.END -> PyNames.END_WILDCARD; delete Wildcard class
GitOrigin-RevId: 91c84d289115de36918a5ceeb33ff8ab9441445d
2019-12-16 13:11:04 +00:00
Petr Golubev
759b71c9b9 mv python inspection EP from python to python/python-psi-api
GitOrigin-RevId: db59e4dfc53ffd531e527f42d8ed3361c98b8270
2019-12-12 11:34:54 +00:00
Yuriy Artamonov
4954832e92 @NotNull for PsiElementVisitor visit methods
GitOrigin-RevId: 6a67f22e668694096a3cbf31dfdc5b1d8f37bba3
2019-12-05 09:07:56 +00:00
Stanislav Utikeev
b7a0ffda90 [platform] Rename XMLs with more proper naming scheme
GitOrigin-RevId: 6202bed80a5708fef96fcbcb396587a3f143d181
2019-12-04 12:07:42 +00:00
Ilya.Kazakevich
f6348985e0 Resolve context should not support implicits by default.
Implicits are slow.
* defaultContext() now doesn't have em
* implicits are enabled explicitly (no wordplay here!) for certain user-initiated actions and findReferenceAt
* Latter is for navigating to methods/attributes of unknown types

GitOrigin-RevId: 62df6707507584576ea4c193ccf6e7f0c128c5be
2019-12-03 17:11:06 +00:00
Stanislav Utikeev
000c60ce9c Implement AsyncExecutionService for analysis tool and fix completion tests
GitOrigin-RevId: 843f486589bc495da791564966cc426f31d61b62
2019-12-03 15:11:09 +00:00
Stanislav Utikeev
e31b8f8ef4 Add PythonAnalysisToolSdk and support for different roots in it
GitOrigin-RevId: a6df08987c456d5dc20bc5c2d5130352b48a34a8
2019-12-03 15:11:09 +00:00
Stanislav Utikeev
98aa28d8e7 Added completion tests for psi
GitOrigin-RevId: 03fa5fa80e6b112e706a31dc124fa48b8fc4c19b
2019-12-03 15:11:09 +00:00
Stanislav Utikeev
2ca4b9825c Add all tests to PyPsiResolveTest and make them run
GitOrigin-RevId: 093fc01609b03e130ff90fa2f049f231745ce366
2019-12-03 15:11:09 +00:00
Stanislav Utikeev
b3d4556fd2 Add initial platform independent tests for Python PSI
GitOrigin-RevId: bf0ff97f9d3a8f54cbadd91e6f68191bc18341cc
2019-12-03 15:11:09 +00:00
Aleksei Kniazev
b90bad3e2d added 'third party skd' type to resolve results to resolve other packages from Google in App Engine project (PY-38080)
GitOrigin-RevId: b24ef47a099857953f3c2dace35490d7a18525ad
2019-11-21 13:11:59 +00:00
Semyon Proshev
cff3f1f86d Enable pyi-stubs for os (PY-23258, PY-21395, PY-21394, PY-21397, PY-17420, PY-28984, PY-27584)
GitOrigin-RevId: 34ecf07bc68276e62315d01f3c3347f79026ec65
2019-11-20 11:37:02 +00:00
Semyon Proshev
6db6ad9f51 Resolve implicit __call__ call on typed elements (PY-33500)
So receiver for implicit `__call__` calls could be determined and hence generics substitutions would be inferred.

GitOrigin-RevId: 51049a8c8ccae6b6620941952b7f1eba53932799
2019-11-20 11:37:02 +00:00
Semyon Proshev
38d93fb370 Drop methods planned for removal in 2020.1
GitOrigin-RevId: e674acb5f6181ad68616c88f41355dedf232451d
2019-11-11 14:09:09 +00:00
Lada Gagina
3d7fb151e9 IDEA-CR-54505: PY-38707 Simplify TypedDict type inference in case of complex class hierarchies
GitOrigin-RevId: b29f9d01ae964ff7b7571188ce540ea963c21054
2019-11-07 02:40:58 +00:00
Lada Gagina
8abae98db4 IDEA-CR-52805: PY-36008 Add support of TypedDict
TypedDict was introduced in https://www.python.org/dev/peps/pep-0589

GitOrigin-RevId: cca138735c7927302214accde298b2f5aae20b48
2019-10-16 17:37:07 +00:00
Ilya.Kazakevich
fde39fbaa3 Fix after IDEA-CR-53174 (rename method)
GitOrigin-RevId: 65b860334d07977c16c23557edad03f8ad0fb29a
2019-10-04 11:34:34 +00:00
Ilya.Kazakevich
a2035d15b0 Get rid of deprecated API in Python inspections
We have PyInspectionExtension, no need to have PyUnresolvedReferenceSkipperExtPoint

GitOrigin-RevId: e8f722d4f637cec2d452785648651956c8956408
2019-10-03 14:03:36 +00:00
Vladimir Koshelev
f5d90f53c8 IDEA-CR-53106: rename ignoreMissingInterpreter to ignoreInterpreterWarnings
(cherry picked from commit 2614eb240454e2428001f30fddcd2aab46c865cb)

GitOrigin-RevId: 33417d77b00b41645c1683c0e876d606bfb5c460
2019-10-01 17:02:43 +00:00
Vladimir Koshelev
6dd9be576f IDEA-CR-53106: add a method to PyInspectionExtension for ignoring PyInterpreterInspection
the method is suitable for ignoring the warning in multi-psi files

(cherry picked from commit 7a73e4ab0b1c26d0e99e66371cf0e35a41b0ccd8)

GitOrigin-RevId: 72ca3d99f71df14f2618c6eed7fb118f1fc54fe6
2019-10-01 17:02:43 +00:00
Dmitry Trofimov
f94ab0507f Make method public
GitOrigin-RevId: 952a02abdcb85cc26d0722f048244197a6395145
2019-09-16 17:03:01 +00:00
Dmitry Trofimov
8ecd83341a No need to have protected utility method
GitOrigin-RevId: e2691b87289c8f7846c8e40a4177632d424da601
2019-09-16 17:03:01 +00:00
Semyon Proshev
8b6907e608 Update LanguageLevel.forElement for directories (PY-37933)
Due to dependencies configuration we decided to move its implementation to PyPsiFacade

GitOrigin-RevId: 9f8f3cd56a3a01d62f9f558e0b0fe1c41a8e939a
2019-09-16 13:18:45 +00:00
Semyon Proshev
b57c568df4 Switch default language level to the latest Python (PY-37933)
GitOrigin-RevId: 845a29b66dd3f71a8c5ed1fdefa9ae9a4bfaff79
2019-09-16 13:18:45 +00:00
Dmitry Trofimov
5803455d10 Move part of lang to analysis and get rid of python-psi-impl dependency on lang
GitOrigin-RevId: 0e6673894d5c1305ccf3992ae585186d00317533
2019-09-13 17:31:37 +00:00
Dmitry Trofimov
0a21fb72f3 Merge branch 'traff/python-psi-impl'
GitOrigin-RevId: 32ba8b691d490ddcab9eae7031f430fd203dbad7
2019-09-11 19:15:01 +00:00
Dmitry Trofimov
a0bc048dcc python-psi-impl extracted
GitOrigin-RevId: e3d808c147ac793701c7b628dbf825a99bb71f2a
2019-09-11 19:15:01 +00:00
Dmitry Trofimov
55fbfb54c2 Rename directory
GitOrigin-RevId: 6939d85c09441c664ab32bf98dce21846418627b
2019-09-11 19:15:01 +00:00