Skip to content

Commit

Permalink
Bad examples now have flake8 errors, pin those to prevent failing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescooke committed Jul 13, 2019
1 parent eb1f3f3 commit 46076b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ venv2/
# Sphinx documentation
docs/_build/

# isort
/isort.out

# mypy
.mypy_cache/

# --- CUSTOM ---

# temp outputs for isort and flake8
/isort.out
/flake8.out
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ fixlint:
.PHONY: lintexamples
lintexamples:
@echo "=== flake8 ==="
flake8 examples
flake8 examples | sort > flake8.out
diff examples/bad/flake8_expected.out flake8.out
@echo "=== black ==="
black --check --diff --verbose examples/good/black

Expand Down
2 changes: 2 additions & 0 deletions examples/bad/flake8_expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
examples/bad/test_noqa_flake8.py:11:17: E225 missing whitespace around operator
examples/bad/test_noqa_flake8.py:5:10: E201 whitespace after '('

0 comments on commit 46076b6

Please sign in to comment.