Skip to content

Commit

Permalink
Add flake8 ignores to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Jun 2, 2023
1 parent 444a114 commit 5eeb514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin_utils/compat/telnetlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def rawq_getchar(self):
self.fill_rawq()
if self.eof:
raise EOFError
c = self.rawq[self.irawq : self.irawq + 1]
c = self.rawq[self.irawq : self.irawq + 1] # noqa: E203
self.irawq = self.irawq + 1
if self.irawq >= len(self.rawq):
self.rawq = b""
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ commands =

[testenv:venv]
commands = {posargs}

[flake8]
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125,E203,E402,E501,E741,F401,F811,F841,W503
max-line-length = 160
builtins = _
exclude = .git,.tox,tests/unit/compat/

0 comments on commit 5eeb514

Please sign in to comment.