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

Add flake8, correct errors #271

Merged
merged 3 commits into from
Jan 30, 2018
Merged

Conversation

ColCarroll
Copy link
Contributor

Fixes #206

Adds an automated code linter. I would rather use pylint which does a bit more aggressive checking, but there is an issue related to our symlinking the snowball project (see pylint-dev/pylint#1470. The fix works, but is not worth maintaining a fork of astroid). I am also ignoring the code generated from snowball.

@coveralls
Copy link

coveralls commented Jan 26, 2018

Coverage Status

Coverage decreased (-0.8%) to 57.343% when pulling 50659d9 on ColCarroll:add_flake8 into 266cacf on berkmancenter:master.

Copy link
Contributor

@hroberts hroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great to me. the restriction against 'import *' in tests is annoying, but we can deal.

@pypt
Copy link
Contributor

pypt commented Jan 29, 2018

Thanks Colin, looks good to me too!

Before merging, could you please add a note about linting in doc/coding_guidelines.markdown?

@pypt pypt added this to the 7 milestone Jan 29, 2018
@ColCarroll ColCarroll merged commit acfcd0b into mediacloud:master Jan 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automated Python linting
4 participants