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
Use flake8
for fast lintint.
#58
Conversation
PyLint should not be discarded since it does some deeper inspection, but flake8 is fast enough that we can even have it in a pre-commit hook. Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
libcrypt.so.2 => {libcrypt} (0x0123456789) | ||
libm.so.6 => /usr/lib/libm.so.6 (0x0123456789) | ||
libc.so.6 => /usr/lib/libc.so.6 (0x0123456789) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the tabs really important here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the looks of things, no.
libcrypt.so.2 => {libcrypt} (0x0123456789) | ||
fake.so.2 => {fake} (0x0123456789) | ||
libm.so.6 => /usr/lib/libm.so.6 (0x0123456789) | ||
libc.so.6 => /usr/lib/libc.so.6 (0x0123456789) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the tabs really important here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the looks of things, no.
owner = root | ||
group = root | ||
|
||
[flake8] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this config reside in pyproject.toml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -21,3 +21,62 @@ include_package_data = True | |||
[options.entry_points] | |||
console_scripts = | |||
relenv = relenv.__main__:main | |||
|
|||
[sdist] | |||
owner = root |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this definitely needed? pypa/setuptools#2800
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I believe root
is not the default user. It'll use which ever user is creating the tarball.
PyLint should not be discarded since it does some deeper inspection, but flake8 is fast enough that we can even have it in a pre-commit hook.