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

Add linter config and fix all lint warnings. #50

Merged
merged 5 commits into from Nov 9, 2017
Merged

Conversation

duggelz
Copy link
Contributor

@duggelz duggelz commented Nov 7, 2017

To use, run nox -s lint.

To use, run `nox -s lint`.
Copy link
Member

@liyanhui1228 liyanhui1228 left a comment

Choose a reason for hiding this comment

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

LGTM with a small comment.

nox.py Outdated

@nox.session
def lint(session):
session.interpreter = 'python3' # So it understands Python3 syntax
Copy link
Member

Choose a reason for hiding this comment

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

Specify the version like python3.6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any version 3.0 or above works. I dug deeper, and the real problem is a Unicode problem with Python 2. So I updated the comment. Note that regular Python installs, and virtualenv -p python 3.anything creates a bin/python3 symlink, so this should ok.

@duggelz
Copy link
Contributor Author

duggelz commented Nov 9, 2017

Moved the flake8 command line arguments to a configuration file, and fixed some lint warnings that came in with the merge from head.

@duggelz duggelz merged commit 556adf3 into master Nov 9, 2017
@duggelz duggelz deleted the dgreiman/nox branch November 9, 2017 00:36
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.

None yet

2 participants