Skip to content

[pyre] Add knob to control search paths #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dandanaila opened this issue Nov 15, 2024 · 0 comments
Open

[pyre] Add knob to control search paths #18

dandanaila opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dandanaila
Copy link

Scenario

We have a repo A for a python project. This has in its list of requirements another python repo B. In the current setup, the pyre linter is complaining for every import & every class imported from the module expose by B.

Current workaround

For the moment, the only way to get it working was to create a .pyre_configuration that included in its search_path: /opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages (that's where pip installed all the requirements). Given all the version numbers in the path, it's not really an ideal solution.

Possible solution

One idea would be having a knob dedicated to pyre, e.g., an environment variable similar to INPUTS_TARGET that would allow a user to specify a list of paths, that can be passed to the pyre binary (e.g., using --search-path for each element in the list when constructing the cmd).

Thanks!

@aegilops aegilops added the enhancement New feature or request label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants