profile
viewpoint

Ask questionspyproject.toml support

Is your feature request related to a problem? Please describe. A lot of popular Python tools now support configuration from pyproject.toml which allows all your configuration to be in one file (and TOML's quite nice)

Describe the solution you'd like If there is a pyproject.toml file with a table for something like tool.pyright, use that and don't look for pyrightconfig.json.

microsoft/pyright

Answer questions notpushkin

@erictraut I understand your decision and if you really don't want this in your project, that's fine, but pyproject.toml is far beyond just “another config file” – most of the Python tooling ecosystem now supports it, so it's really a central place, like how many tools in JS ecosystem support both own config files and package.json.

If you don't want to implement it yourself, but aren't otherwise against the idea, perhaps I could put up a PR for you?

useful!

Related questions

Import could not be resolved for pip packages and local modules hot 1
Unbound type when using `from ... import` hot 1
Import 'orjson' could not be resolved hot 1
Import could not be resolved for pip packages and local modules hot 1
Import could not be resolved when folder matches python module name hot 1
Cannot access to attribute if it setted through magic method hot 1
Errors are shown despite files being in "exclude" in pyrightconfig.json hot 1
Support for PYTHONPATH hot 1
Errors are shown despite files being in "exclude" in pyrightconfig.json hot 1
Errors are shown despite files being in "exclude" in pyrightconfig.json hot 1
Watcher could not use native fsevents library. File system watcher disabled. hot 1
Inconsistent path treatment for `typeshedPath` and `typingsPath`. hot 1
Incorrect "'symbol' is unknown import symbol" in 1.0.83 hot 1
Github User Rank List