Open poppyschmo opened 4 years ago
What: offer users an escape hatch for corner cases
Rationale: people may need to adjust the options passed to mypy, and trying to accommodate everyone's needs, case-by-case, is untenable
Example: overriding options in a shared config. Suppose:
pyls
mypy
Unfortunately, mypy requires the python_executable to behave correctly with this setup. With a patch like this, a user could add something like
python_executable
lsp_overrides:pyls:plugins:pyls_mypy:prepend: - "--python-executable" - /home/me/repo/.venv/bin/python
to their editor's per-project dot file. (And, for more involved changes, there's always --config-file.)
--config-file
What: offer users an escape hatch for corner cases
Rationale: people may need to adjust the options passed to mypy, and trying to accommodate everyone's needs, case-by-case, is untenable
Example: overriding options in a shared config. Suppose:
pyls
andmypy
are installed globallyUnfortunately, mypy requires the
python_executable
to behave correctly with this setup. With a patch like this, a user could add something liketo their editor's per-project dot file. (And, for more involved changes, there's always
--config-file
.)