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

Add flake8 lint checking of python files #2393

Merged
merged 1 commit into from
Mar 15, 2017
Merged

Add flake8 lint checking of python files #2393

merged 1 commit into from
Mar 15, 2017

Conversation

Standard8
Copy link
Contributor

For #2319 I'm creating a script that's going to use python (because that's currently the one language I can find a decent supported bugzilla API integration for).

Hence as part of that, we're going to need a .venv, and we might as well get flake8 set up as well to help with getting the scripts clean.

@@ -103,6 +104,14 @@ else
FIND_COMMAND := find -E $(GIT_EXPORT_DIR)
endif

$(VENV): bin/require.pip
virtualenv -p python2.7 $(VENV)
. $(VENV)/bin/activate && pip install -r bin/require.pip
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be $(VENV)/bin/pip install -r bin/require.pip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could be $(VENV)/bin/pip install -r bin/require.pip

Actually, that doesn't seem to work for pip install - looks like it needs the activation first.

@ianb ianb merged commit 256d58a into master Mar 15, 2017
@ianb ianb deleted the enable-flake8 branch March 15, 2017 21:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants