I set specific errors ("D", "E123", "E126") to ignore in default Flake8Lint.sublime-settings:
{
"python_interpreter": "auto",
"builtins": [],
"pyflakes": true,
"pep8": true,
"pydocstyle": true,
"naming": true,
"import-order": true,
"import-order-style": "google",
"complexity": -1,
"pep8_max_line_length": 79,
"select": [],
"ignore": ["D", "E123", "E126"],
"ignore_files": []
}
But those errors are still detected and displayed. Does anyone know how to fix it? Thank you!
I have two suggestions:
If you don't want to install Sublime Linter, you can see if any of these changes work:
"ignore": "D,E123,E126",
or replace the "ignore" key with:
"args": "--ignore D,E123,E126",
I know flake8 changed the way rules are ignored earlier this year (there is an issue about it here ) and I'm guessing the package you are using hasn't been updated to facilitate this change.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.