Closed tomleo closed 3 years ago
:facepalm: I asked this same question 2 years ago... https://github.com/SublimeLinter/SublimeLinter-flake8/issues/108
The solution if anyone happens to read this (you might also want to consider using variable expansion, something I didn't do here):
"settings":
{
"SublimeLinter.linters.flake8.env": {"PATH": "/home/tom/hacking/project/venv/"},
"SublimeLinter.linters.flake8.executable": ["/home/tom/hacking/project/venv/bin/python", "-m", "flake8"],
"SublimeLinter.linters.flake8.working_dir": "/home/tom/hacking/project/src/backend",
},
In my project file:
However all settings from that
.flake8
file seem to be getting ignored, mainly line-length options:If I explicitly add the line-length argument, it still get's ignored
It seems as though flake8 is getting called without my wanted arguments. I can confirm that when executing commands from the command-line settings like a longer
max-line-length
are respected.FWIW I've also tried the additional
"SublimeLinter"
line (wasn't sure if that's needed for project settings), anyways it didn't seem to change anything.If it's useful I'm using Sublime Text build 4107.
Thanks!