Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Update flake8 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Sep 14, 2013
1 parent 6636eb7 commit fa1de34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test: bootstrap lint

lint:
@echo "Linting Python files"
flake8 --exclude=migrations --ignore=E501,E225,E121,E123,E124,E125,E127,E128 raven || exit 1
PYFLAKES_NODOCTEST=1 flake8 raven || exit 1
@echo ""

coverage:
Expand Down
4 changes: 2 additions & 2 deletions raven/contrib/django/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def can(self, value):

pre = value.__class__.__name__[1:]
if not (hasattr(value, '%s__func' % pre) or
hasattr(value, '%s__unicode_cast' % pre) or
hasattr(value, '%s__text_cast' % pre)):
hasattr(value, '%s__unicode_cast' % pre) or
hasattr(value, '%s__text_cast' % pre)):
return False

return True
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[pytest]
python_files=test*.py
addopts=--tb=short

[flake8]
ignore = F999,E501,E128,E124
max-line-length = 100
exclude = .tox,.git,docs

0 comments on commit fa1de34

Please sign in to comment.