Commit Graph

53 Commits

Author SHA1 Message Date
Eric Traut
057b351efa
Added support for multithreaded type checking in CLI. (#8309) 2024-07-04 20:52:37 -07:00
Eric Traut
5568b4dc95 Enhanced command-line version of pyright to allow file or directory names to be passed via stdin if - option is used in the command line. This addresses https://github.com/microsoft/pyright/issues/5342. 2023-06-19 18:00:31 -07:00
Ross J. Duff, MSc
b12ca05927
Clarification of --version argument usage string (#5308)
* Update command-line.md

clarify that `--version` prints the version *and exits*

* Update --version usage string

Clarifies that `--version` prints the version *and exits*, this is fairly common language used by most CLI apps to indicate what the behavior of `--version` is. It may surprise new users that `--version` exits rather than appending the version with the previous language.
2023-06-15 08:42:26 -07:00
Eric Traut
98b0604eb9 Added command-line option pythonpath that allows the path to the python interpreter to be specified. This addresses https://github.com/microsoft/pyright/issues/5111. 2023-05-13 16:19:14 -07:00
Eric Traut
ba18f421d1 Deprecated command-line options 'typeshed-path' and 'venv-path' in favor of 'typeshedpath' and 'venvpath'. The hyphenated options were inconsistent with the conventions used for other options. 2023-05-13 15:56:26 -07:00
Eric Traut
2c6e5b2938 Updated CLI documentation to clarify that files specified on the command line do not cause the config file to be ignored entirely. 2023-04-22 19:31:52 -07:00
Eric Traut
5d6eacd5e1
Changed the default of the useLibraryCodeForTypes from false to true to bring pylance and pyright into alignment. Also deprecated the "--lib" command-line option, which was previously used to enable useLibraryCodeForTypes from the command line. (#4903)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2023-04-05 09:47:59 -06:00
Eric Traut
b3fd962116 Fixed bugs in documentation. 2023-03-06 15:45:51 -07:00
Eric Traut
8458382477 Implemented a new --level command-line option that allows filtering of 'information' and 'warning' diagnostics. 2022-12-14 09:20:15 -08:00
Eric Traut
5840e3eb7c Improved docs string for the --skipunannotated command line option. 2022-05-18 15:29:06 -07:00
Eric Traut
28d60e62ae Updated command-line documentation for consistency. 2021-11-29 22:31:14 -08:00
Jos Verlinde
8d32784230
extend documentation on JSON (#2635)
copying the information provided as answer to https://github.com/microsoft/pyright/issues/2634
2021-11-29 13:20:41 -08:00
Eric Traut
ef773d2407 Added "--skipunannotated" option for command-line version of pyright. If specified, pyright skips type analysis of functions and methods that have no parameter or return type annotations. Return types of functions are also never inferred from the function implementation. This matches the default behavior of mypy and allows for more efficient analysis of complex code bases that are only partially annotated. 2021-10-22 23:17:29 -07:00
Eric Traut
3fbb23a5c4 Fixed typo in command-line docs. 2021-10-15 10:01:29 -07:00
Eric Traut
6107de9090 Added new "--warnings" command-line option that generates an exit code of 1 if one or more warnings are emitted. By default, only errors generate an exit code of 1. 2021-10-06 20:12:15 -07:00
Arnav Jindal
68a0cb85e0
Update command-line.md to emphazise flags with arguments (#1980)
* Update command-line.md

* Update command-line.md

* Update command-line.md
2021-06-12 09:20:57 -07:00
Steve Rice
bda2a94294
Update command line directions with new output format (#1749)
Since ba901d1449 (diff-c3f0fa903325059f6e7dda1116458aafa72061ac3d1a51ddfd077a5dc0801030R394), the `--outputjson` result schema has changed.
2021-04-08 17:36:48 -07:00
Eric Traut
a192486099 Renamed "--ignore-external" to "--ignoreexternal" for consistency. Removed undocuemented "!" mechanism for invoking this functionality. 2021-03-03 00:51:18 -07:00
Vlad Emelianov
dc7382d52f
Add --ignore-external CLI flag (#1564)
Co-authored-by: Eric Traut <eric@traut.com>
2021-03-03 00:42:37 -07:00
Eric Traut
e6f8dbf4fa
Implemented command-line switches for pythonplatform and pythonversion. These are overridden by pyrightconfig.json settings. (#1529)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-02-23 17:05:13 -07:00
Eric Traut
dc5cd387fc Implemented new "verifytypes" command-line option that analyzes a py.typed package and reports missing or partially-unknown types. 2020-09-28 14:49:32 -07:00
Eric Traut
b6cd5eedae Fixed missing JSON field in command-line documentation. 2020-09-28 14:34:29 -07:00
Eric Traut
6378f7761f Changed reveal_type to use an information diagnostic severity rather than warning. Added support in CLI for information diagnostic severity. These were previously dropped. 2020-09-16 10:11:30 -07:00
Eric Traut
6356575664 Changed the behavior of the command-line version of pyright when file specs are passed on the command line. Previously, file specs couldn't be used in conjunction with a config file. Now a config file is used, but the specified file specs override the "include" section of the config file. 2020-09-11 00:27:57 -07:00
Eric Traut
0a65625e03 More documentation improvements. 2020-09-04 14:51:40 -07:00
Eric Traut
4fa40fba75 Minor tweak to documentation. 2020-09-04 14:32:38 -07:00
Eric Traut
6591dafce0 Documented the JSON output when "--outputjson" command-line option is used. 2020-09-04 14:30:14 -07:00
Eric Traut
b59542c6ed Improved command-line documentation to clarify that individual files specified on the command line will cause the config file to be ignored. 2020-08-14 23:07:23 -07: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
cd93a97931 Exposed the useLibraryForTypes setting on the command line through a "--lib" switch. 2019-11-22 21:13:22 -08:00
Eric Traut
c0b6f99ae7 Added new 'outputjson' command-line option that formats output in JSON format. 2019-11-21 00:30:44 -08:00
Eric Traut
358abe62e4 Added code to command-line version to report a non-zero exit code if the config file couldn't be read or parsed. 2019-10-23 23:34:27 -07:00
Eric Traut
294cc3d12c Fixed some typos in documentation. 2019-09-26 19:38:48 -07:00
Eric Traut
f272d78de8 Updated command-line documentation. 2019-09-05 00:42:08 +00:00
Eric Traut
3c9954eb30 Added "--dependencies" command-line switch that reports import dependency information for all source files that were analyzed. 2019-07-27 12:58:14 -07:00
Eric Traut
87030c7a06 Updated documentation to reflect new exit code behavior. 2019-05-16 20:28:04 -07:00
Eric Traut
2f148e88a7 Small tweaks to version printing code. 2019-05-09 08:21:22 -07:00
Oleg Butuzov
76d464aaad --version cli argument added to pyright 2019-05-09 16:41:54 +03:00
Eric Traut
375e35e56d Added a bunch of verbose diagnostic information to help resolve import resolution issues. 2019-04-27 19:04:37 -07:00
Eric Traut
21320b0288 Replaced --timing command-line switch with --stats, which prints out more information. 2019-04-14 17:44:44 -07:00
Eric Traut
25a3b5b3a1 More improvements to markdown formatting. 2019-04-04 23:05:17 -07:00
Eric Traut
5af185c606 Improved formatting of exit codes table. 2019-04-04 23:04:01 -07:00
Eric Traut
3ddfe52302 Fixed (and documented) exit codes for command-line app.
Added --timing flag to conditionally report detailed timing stats.
2019-04-04 22:35:53 -07:00
Eric Traut
9c38d9fad4 Removed obsolete -P command-line parameter. 2019-04-04 21:52:10 -07:00
Shweta Goyal
f7b2aa6250
Update command-line.md 2019-03-29 18:56:16 +05:30
Eric Traut
026a1f48c0 Added more documentation around the -v command-line switch. 2019-03-24 10:52:32 -07:00
Eric Traut
c8531cc9a9 Updated documentation. 2019-03-20 21:31:15 -07:00
Eric Traut
a505e4e606
Update command-line.md 2019-03-20 12:37:38 -07:00
Eric Traut
fcc9fc0ace
Update command-line.md 2019-03-20 12:36:45 -07:00