![]() ![]() No custom ~/.vimrc is installed.Įxpected behavior: ALE runs pylint from the correct directory and this line is not flagged as an error. Using :ALEInfo shows me that pylint was run from top/src/package/ rather than top/. ALE's pylint flags it as a "relative-beyond-top-level", which it's not - the package works fine with the Python interpreter. (i.e., # rather than %.)Īctual behavior: In terms of the package structure described below, I use vim to open config.py, which contains this line: from. I think this is because ALE uses vim's alternate file rather than the current file in finding the project root. Digging in a bit more, I find this is because ALE isn't correctly identifying the root directory of the project. pylintrc as well as in pyproject.toml, both in the root directory of the project. When working on code in a package, I can't get ALE to respect the pylint configuration in the project root. I use ALE to run linters while editing Python code in vim. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |