Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #34425: configure vscode pycodestyle linter
The goal of this ticket is to configure the vscode pycodestyle linter to check against Sage's minimal style conventions: * E111: indentation is not a multiple of four * E306: expected 1 blank line before a nested definition, found 0 * E401: multiple imports on one line * E701: multiple statements on one line (colon) * E702: multiple statements on one line (semicolon) * E703: statement ends with a semicolon * E711: comparison to None should be ‘if cond is None:’ * E712: comparison to True should be ‘if cond is True:’ or ‘if cond:’ * E713: test for membership should be 'not in' * E721: do not compare types, use isinstance() * E722: do not use bare except, specify exception instead * W605: invalid escape sequence ‘x’ See https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes URL: https://trac.sagemath.org/34425 Reported by: gh-DavidAyotte Ticket author(s): David Ayotte Reviewer(s): Matthias Koeppe
- Loading branch information