Commit Graph

21280 Commits

Author SHA1 Message Date
Vladimir.Orlov
34d5c87243 python 2.7.15 and 3.7.0 2018-07-16 11:01:05 +03:00
Mikhail Golubev
8cc4776985 Use DocumentUtil.isLineEmpty() in PyEmacsHandler 2018-07-13 21:39:03 +03:00
Gregory.Shrago
35f3995ee9 regen 2018-07-13 20:37:23 +03:00
Eugene Zhuravlev
a81f587593 refactor LicensingFacade and UltimateVerifier so that they do not reference LicenseManager and delegate directly to it 2018-07-13 12:15:48 +02:00
Anton Bragin
2b5e738a5a PY-30827 PyRenameElementQuickFix changed to avoid special handling of unit test cases
Test data and PyQuickFixTest are updated accordingly. Test for renaming in language injection added.
2018-07-13 10:46:32 +03:00
Anton Bragin
84994a13da PY-30827 PyRenameElementQuickFix fixed to work both with physical and virtual files
New implementation extends LocalQuickFixAndIntentionActionOnPsiElement and uses Editor instance provided by super class
instead of retrieving it. The clients are updated accordingly. Duplicated code extracted into PyQuickFixUtil.
2018-07-13 10:46:10 +03:00
Ilya.Kazakevich
76decd7435 PY-30739: Custom fixtures could be in any file
PyTest has EP to find custom fixtures (step defs in case of pytest-bdd). This process is delegated to pytest-bdd,
which finds fixtures in conftest.py and same file using index
2018-07-12 20:52:08 +03:00
Alexander Koshevoy
a74398fb40 Fix Python Console tests 2018-07-12 19:55:11 +03:00
Dmitry Jemerov
e272cbbc6b Extract kotlin-script-runtime to a separate library (IDEA-CR-34861) 2018-07-12 12:32:05 +02:00
Ekaterina Tuzova
e6e2a70c50 PY-30470 reST preview: provide dark theme
dark background for code tags
2018-07-11 18:55:14 +03:00
Vladimir.Orlov
918f2b3c22 IDEA-170921 Can't uninstall IntelliJ IDEA Community Edition 2018-07-11 15:13:43 +03:00
Semyon Proshev
a086f1c413 Support INSERT IGNORE ... (PY-30794) 2018-07-10 20:03:19 +03:00
Ekaterina Tuzova
1f70e4f084 PY-30470 reST preview: provide dark theme
dark background for code tags
2018-07-10 19:30:40 +03:00
Sergey Ignatov
0d807c719d cleanup: use <> instead of <type> 2018-07-10 14:40:59 +03:00
Ilya.Kazakevich
9ab5f5566b Project dispose added, leak hunter removed (must be called after app dispose) 2018-07-10 01:01:48 +03:00
Ilya.Kazakevich
46ff8b0b46 Hunter removed from teardown
We need to stop app (we'll have leak otherwise) but we can't do in teaDown, only in last step of suite
2018-07-09 22:54:13 +03:00
Ilya.Kazakevich
edb3f4b944 dispose test root in tests 2018-07-09 18:00:00 +03:00
Alexey Kudravtsev
7d2c9d6455 javadoc references fixed 2018-07-09 17:36:59 +03:00
Sergey Ignatov
e67e0f673b use lambdas 2018-07-09 17:12:34 +03:00
Ilya.Kazakevich
5ed3d0c4ce flush all events in test 2018-07-09 17:03:35 +03:00
Ilya.Kazakevich
f75d9d803f Check leaks right after test for fast-fail 2018-07-06 23:54:32 +03:00
Ilya.Kazakevich
4039d32479 PY-30563, PY-30768: Support parameter types for behave and pytest-bdd
There are 2 parsers:
* (cf)parse: supports syntax like {paramName:d} or custom types: {paramName:Foo}. Foo must be mapped to real type by behave and pytest-bdd using different approaches.
* re: supports regexp. By default types are strings, but pytest-bdd can match param names to certain types.

And there are 2 frameworks (each of them supports both parsers):
* behave
* pytest-bdd

Parsers are implemented as PyBDDParser inheritors (and called *processors for historical reasons) and by PyBDDMatcher instances.

Frameworks are implemented by PyStepDefinition inheritors.

PyStepDefinition's know to how to:
* fetch type-alias-to-type or argument-name-to-type mappings
* find step definition expression in decorator

Parsers know how to:
* convert step definition to python regexp
* get argument types using information from PyStepDefinition's
2018-07-06 23:27:16 +03:00
Ilya.Kazakevich
020490b1d8 Fix test: jython is not installed by build.gradle and ipython is called ipython, not ipython012.
See build.gradle
2018-07-05 16:32:17 +03:00
Ilya.Kazakevich
7fdf4fed10 PY-30434: Support step definitions like fixtures
Step definition could be injected to another step definition like fixture.
2018-07-05 02:34:02 +03:00
Ilya.Kazakevich
d157a3f2b4 Fix leak in tests 2018-07-05 00:56:16 +03:00
Elizaveta Shashkova
be9f8ef4df PY-27594 Add test 2018-07-03 21:00:52 +03:00
Bernat Gabor
99df9e4259 PY-27594 Disable debug when Python gets input from stdin 2018-07-03 21:00:37 +03:00
Semyon Proshev
3442914fa1 Support modifications for range(...) result in type inference (PY-29577) 2018-07-03 17:54:13 +03:00
Semyon Proshev
1c851012d0 Mark callSite parameter in PyTypeProvider.getCallType as not null (PY-29577) 2018-07-03 17:53:58 +03:00
Semyon Proshev
acb29ed2b0 Fix comparing pre-release numbers (PY-27350) 2018-07-03 14:21:58 +03:00
Semyon Proshev
4ba52eb062 Fix doing type assertions for <ref> is <ref> statements, None should be presented on one side only (PY-29748) 2018-07-02 20:00:19 +03:00
Elizaveta Shashkova
f6f2b1126b Fix EA-122782 2018-07-02 17:54:24 +03:00
Semyon Proshev
c0b63fdc4c Add support for bool literals in Py3+ (PY-29731) 2018-07-02 17:39:28 +03:00
Semyon Proshev
6eeb3b25be Update overriding method with overloads (PY-30287)
* Select implementation as super method, not an overload
* Copy all its overloads
* Add imports for decorators (e.g. typing.overload)
2018-06-29 20:59:42 +03:00
Semyon Proshev
98582a7785 Check original parameter default value if stub one is ellipsis (PY-30335) 2018-06-29 20:59:12 +03:00
Dmitry Trofimov
320a249ee8 Enable path mapping handling for remote stacktraces in "Analyze Stack Trace" action 2018-06-27 21:26:22 +02:00
Semyon Proshev
a66b787eea Support appending requirement to string or tuple in setup.py (PY-29153, PY-30016) 2018-06-27 15:04:09 +03:00
Semyon Proshev
f132334197 Update PyPackageUtil.resolveValue contract and its usages (PY-29153, PY-30016) 2018-06-27 15:04:09 +03:00
Semyon Proshev
b9b8efa2b3 Support strings and tuple of strings in setup.py requirements (PY-29153, PY-30016) 2018-06-27 15:04:08 +03:00
Semyon Proshev
e082bf7bd8 Close method (PY-29153, PY-30016) 2018-06-27 15:04:08 +03:00
Mikhail Golubev
a66fc1c678 PY-25488 Preserve formatting of extracted collection literals
as it's especially tedious to re-format them each time afterwards and
being surrounded with brackets they are safe to be moved to RHS of an
assignment.

Alternatively, we could leave such inlining only for binary expressions
since they can become syntactically illegal when moved out of the
context with implicit line joining (PY-2862).
2018-06-26 18:09:49 +03:00
Andrey Vlasovskikh
50d1f58231 PY-30606 Suggest only the latest system-wide Python interpreter when creating a project with no Python SDKs set up
All other detected interpreters will be show in the Add Python
Interpreter dialog. They are detected, sorted, and categorized without
running them in that dialog.
2018-06-26 17:16:02 +03:00
Andrey Vlasovskikh
c6bf7e7422 PY-26492 Ask PyPackageManager about management tools instead of checking for them manually
This fixes installing a single package in pipenv, since pipenv doesn't
report about setuptools and pip as installed into its virtualenv.
2018-06-26 17:16:02 +03:00
Elizaveta Shashkova
d6bcd31fd7 Update Cython extensions (PY-29051)
For all Pythons including Python 3.7rc1
2018-06-26 14:42:10 +03:00
fitermay
79a6ca9ad3 PY-29051: Fix breakpoints on lines that throw exceptions
Those lines were hit the first time. The subsequent times incorrect
caching prevented the breakpoints from activating

Also minor: provide cython type for 'stop' local
2018-06-26 14:42:09 +03:00
Mikhail Golubev
e5226b9cf5 EA-121262 Don't include incomplete from imports in implicit package members 2018-06-25 18:24:57 +03:00
Alexey Kudravtsev
539a444101 removed unnecessary store/restore code style settings in tests because they're dropped automatically 2018-06-25 17:57:05 +03:00
Andrey Vlasovskikh
65713d5925 PY-30577 Save new pipenv path before we use it to create a new environment 2018-06-25 14:08:10 +03:00
Andrey Vlasovskikh
fe2886d35e PY-30254 Use DataGrip-specific dependency that doesn't interfere with Rider + Database plugin 2018-06-25 13:30:37 +03:00
Vladimir.Orlov
9c5715e200 win installer: updated silent mode to support update PATH env. var. 2018-06-25 11:55:08 +03:00