Skip to content

Commit

Permalink
test: Add flake8-bugbear
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jun 30, 2019
1 parent d98e029 commit b72292c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = E203, E266, E501, W503, E402, E731, C901
ignore = E203, E266, E501, W503, E402, E731, C901, B950
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
string_types = (str, text_type)
number_types = (int, long, float) # noqa
int_types = (int, long) # noqa
iteritems = lambda x: x.iteritems()
iteritems = lambda x: x.iteritems() # noqa: B301

def implements_str(cls):
cls.__unicode__ = cls.__str__
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ deps =

linters: black
linters: flake8

# https://github.com/PyCQA/pyflakes/pull/423
linters: git+https://github.com/pycqa/pyflakes
linters: flake8-import-order
linters: mypy

# https://github.com/PyCQA/flake8-bugbear/pull/77
linters: git+https://github.com/untitaker/flake8-bugbear#branch=fix/b901-yield-expr
setenv =
PYTHONDONTWRITEBYTECODE=1
TESTPATH=tests
Expand Down

0 comments on commit b72292c

Please sign in to comment.