Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Flake8 #3623

Merged
merged 3 commits into from
Jan 31, 2019
Merged

Fix Flake8 #3623

merged 3 commits into from
Jan 31, 2019

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jan 30, 2019

There's a new release of Flake8 (3.7.1), including a new release of pyflakes (2.1.0), which brings in some new tests which fail:

https://travis-ci.org/python-pillow/Pillow/jobs/486309539#L224

./winbuild/build_dep.py:310:9: E117 over-indented (comment)

Simple comment indentation.

./Tests/test_file_libtiff.py:196:9: F723 syntax error in type comment 'dummy value'

It now checks mypy type comments. This one isn't a real mypy type comment, so change type: to Type:.

./src/PIL/PdfParser.py:396:9: F821 undefined name 'file'
./src/PIL/PdfParser.py:396:9: F821 undefined name 'Union'

The Union one can be fixed with from typing import Union, but that introduces a dependency on the mypy typing module. We have issue #2625 to add typing support, so I've removed it from here.

@hugovk
Copy link
Member Author

hugovk commented Jan 30, 2019

Coverage dropped because AppVeyor didn't run:

https://ci.appveyor.com/project/Python-pillow/pillow/history

(It passed on my fork: https://ci.appveyor.com/project/hugovk/pillow/builds/21993434)

Closing and re-opening in case it triggers it.

@hugovk hugovk closed this Jan 30, 2019
@hugovk hugovk reopened this Jan 30, 2019
@hugovk
Copy link
Member Author

hugovk commented Jan 30, 2019

✅ That sorted it.

@hugovk
Copy link
Member Author

hugovk commented Jan 31, 2019

Merging to unblock CI.

@hugovk hugovk merged commit 3a41d6d into python-pillow:master Jan 31, 2019
@hugovk hugovk deleted the fix-flake8 branch January 31, 2019 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant