Commit Graph

147 Commits

Author SHA1 Message Date
Eric Traut
2002520d0b Moved CI documentation to its own page. 2020-07-22 16:55:50 -07:00
Eric Traut
d687708503 Updated "getting started" documentation to include an example git hook definition. 2020-07-22 16:53:34 -07:00
Eric Traut
0cb83d36c8 Renamed setting "pyright.useLibraryCodeForTypes" to "python.analysis.useLibraryCodeForTypes" for compatibility with Pylance. The older setting name is still supported but will be removed in the future. 2020-07-16 15:58:09 -07:00
Eric Traut
3581910469 Improved documentation for useLibraryCodeForTypes setting. 2020-07-16 15:49:16 -07:00
Eric Traut
579fb7be69 Fixed an outdated statement in the configuration documentation. 2020-07-16 10:09:43 -07:00
Eric Traut
838b293a4f Small improvements to type inference documentation. 2020-07-15 00:26:02 -07:00
Eric Traut
531ebc4694 Added documentation for type inference. 2020-07-14 23:02:50 -07:00
Eric Traut
c80b8af3aa Updated "getting started" docs. 2020-07-11 14:40:01 -07:00
Eric Traut
5e4cbeca63 Fixed a few markdown issues in import resolution documentation. 2020-07-11 14:00:20 -07:00
Eric Traut
5526b9aafe More tweaks to import resolution documentation. 2020-07-11 13:42:17 -07:00
Eric Traut
19c8a47ff8 Changed Pyright import resolution order to match that described in PEP 561. In particular, stubs in stubPath are now searched prior to user code, and third-party typeshed stubs are searched only after installed packages are searched for stub packages and inline stubs. There is one place where Pyright's import resolution still differs from a strict interpretation of PEP 561: it searches stdlib typeshed stubs first (unless typeshedPath is defined, in which case it searches there). This is more consistent with the way the Python interpreter resolves stdlib types. 2020-07-11 13:39:32 -07:00
Eric Traut
5a57aaa14f Added more details to the import resolution documentation. 2020-07-11 12:53:17 -07:00
Eric Traut
9505d1b242 Added new section on debugging import resolution problems. 2020-07-11 12:40:29 -07:00
Eric Traut
ef1b4d8441 Missed a file. 2020-07-11 12:35:29 -07:00
Eric Traut
69c0841d7a Updated Pyright documentation for import resolution so it is more complete and better reflects the logic implemented in the code. 2020-07-11 12:35:05 -07:00
Eric Traut
f6200f9887 Switched "pyright.typeCheckingMode" to "python.analysis.typeCheckingMode" for compatibility with Pylance. 2020-07-05 15:28:37 -07:00
Eric Traut
faf4464ae0 Tweaked internals documentation for clarity. 2020-06-30 23:56:16 -07:00
Eric Traut
863721687b Added support for the new Python extension setting for pythonPath. This mechanism replaces the soon-to-be-deprecated "python.pythonPath" setting. 2020-06-21 11:03:40 -07:00
Eric Traut
cf794e30d5 Added documentation for python.analysis.logLevel setting. 2020-06-18 21:40:43 -07:00
Eric Traut
998304dc78 If the pythonPlatform or pythonVersion are not specified, they are now initialized based on the current platform and configured python interpreter. 2020-05-24 22:56:55 -07:00
Eric Traut
fcdaeba35e Updated documentation. 2020-05-24 00:36:06 -07:00
Eric Traut
500da74c69 Removed reportTypeshedErrors diagnostic rule. It no longer makes sense given how errors are being reported. 2020-05-23 14:00:50 -07:00
Jake Bailey
0a0cd61f85
Use docstrings from source code, fix references showing in libraries, add information level, client override support (#685) 2020-05-22 14:02:54 -07:00
Eric Traut
6f30005de1 Tweaked settings documentation to make it clear that we're deprecating pyright.openFilesOnly. Added backward compatibility support for python.analysis.openFilesOnly. 2020-05-15 15:42:27 -07:00
Jake Bailey
1d56d6765f
Fix windows bug, add PEP 604 printing, fix unused variable action, add stubPath and diagnosticMode (#673) 2020-05-15 13:01:55 -07:00
Heejae Chang
8e32a2d345
Introduced UnboundVariable and UndefinedVariable diagnostic rules and refactored auto import and add tests (#663) 2020-05-08 18:55:32 -07:00
Jake Bailey
11918674e7
Add extraPath support, accept minor versions in version_info, make completion extension async (#662) 2020-05-07 16:52:53 -07:00
Eric Traut
921de3097e Added support for "python.analysis.autoSearchPaths" setting. If enabled (as it is by default), it automatically adds "src" to the import search paths. It is common for workspaces to contain a directory by this name. 2020-04-25 14:26:46 -07:00
Hugues Valois
a97d8f155d
Add diagnostic for missing imported source file. (#636)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2020-04-21 16:24:53 -07:00
Eric Traut
c1fb36b50b Documented bash script for upgrading pyright and running it as part of CI. 2020-04-15 10:59:17 -07:00
Eric Traut
a0b48358f5 Implemented new setting "pyright.disableOrganizeImports". 2020-04-12 02:10:20 -07:00
Eric Traut
fa34df5306 Added new pyright.typeCheckingMode setting for VS Code extension that allows you to set the default rule set for type checking. Three values are supported: "off", "basic", and "strict". This setting can be overridden in the pyrightconfig.json file with the typeCheckingMode config key. 2020-04-08 00:44:56 -07:00
Eric Traut
aae44cbdb3 Added "reportGeneralTypeIssues" setting, which is set to "error" by default. Users can optionally change it to "warning" or "none". 2020-04-01 22:48:24 -07:00
Heejae Chang
4b194b0431
added auto venv detection, LS extension points, auto detection on library changes and more tests added. (#574)
auto venv detection makes sure pyright automatically exlude virtual environment from user codes
LS extension points lets plug in such as intellicode to extend what shows up in completion list
auto detection on library let pyright to refresh automatically when new packages are installed/removed.

more test coverage on code fix, new features and etc
2020-03-20 12:17:25 -07:00
Eric Traut
93804d3c07 Implemented "Restart Server" command. 2020-03-08 12:17:19 -07:00
Eric Traut
909f3e6408 Added "verboseOutput" config setting, allowing verbose logs to be enabled when used with VS Code extension. 2020-03-01 16:37:05 -08:00
Jake Bailey
02bdbdee07 Revert markdown changes, restore .vscode for server (#115) 2020-02-25 12:57:54 -08:00
Jake Bailey
8d2cca7289 Mass reformat ts/js/md with ESLint quick fixes and prettier (#113) 2020-02-24 16:52:23 -08:00
Eric Traut
3c8176542a Reverted default value of 'reportMissingTypeStubs' setting from 'warning' to 'none'. 2020-02-17 16:31:10 -07:00
Eric Traut
d3221ca343 Made a few small improvements to documentation. 2020-02-17 01:16:30 -07:00
Heejae Chang
b1e0ff81dd
made reportMissingTypeStub diagnostics warning by default and some refactoring around code actions. (#507)
* enable generate type stub diagnostic (and hence code action) on by default as "warning"

* refactored code action code a bit
2020-02-11 00:39:21 -08:00
Eric Traut
d7ded12962 Made small improvements to internals docs. 2020-02-04 13:08:58 -08:00
Eric Traut
e03712be1c Added new configuration setting reportImplicitStringConcatenation. 2020-01-09 00:38:23 -08:00
Eric Traut
897b0894af Added new setting reportUnknownArgumentType that emits an error or warning when an argument's expression type is unknown or partially unknown. 2020-01-05 22:02:05 -07:00
Eric Traut
d87356c076 Added reportSelfClsParameterName setting and defaulted it to warning. 2019-12-24 13:30:57 -07:00
Eric Traut
c39bca52a1 Added ".venv" and ".git" to default exclude paths. 2019-12-17 01:17:01 -07:00
Eric Traut
83be6ecfbe Added missing documentation for reportDuplicateImport. 2019-12-13 22:18:29 -08:00
Eric Traut
736545c21f Added new section to documentation that talks about type inference. 2019-12-13 22:11:47 -08:00
Eric Traut
a982b02e64 Added new configuration option "reportDuplicateImports" that generates an error or warning when a symbol or module is imported more than once in a source file. 2019-12-13 21:22:56 -08:00
Eric Traut
697997fa6f Added default excludes of **/node_modules and **/__pycache__ because these are almost never intended to be scanned for tracked source files. 2019-12-08 12:43:21 -08:00