Skip to content

Commit fa1de34

Browse files
committed
Update flake8 configuration
1 parent 6636eb7 commit fa1de34

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test: bootstrap lint
1111

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

1717
coverage:

raven/contrib/django/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def can(self, value):
2626

2727
pre = value.__class__.__name__[1:]
2828
if not (hasattr(value, '%s__func' % pre) or
29-
hasattr(value, '%s__unicode_cast' % pre) or
30-
hasattr(value, '%s__text_cast' % pre)):
29+
hasattr(value, '%s__unicode_cast' % pre) or
30+
hasattr(value, '%s__text_cast' % pre)):
3131
return False
3232

3333
return True

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[pytest]
22
python_files=test*.py
33
addopts=--tb=short
4+
5+
[flake8]
6+
ignore = F999,E501,E128,E124
7+
max-line-length = 100
8+
exclude = .tox,.git,docs

0 commit comments

Comments
 (0)