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

Use flake8 for fast lintint. #58

Merged
merged 1 commit into from Dec 5, 2022
Merged

Use flake8 for fast lintint. #58

merged 1 commit into from Dec 5, 2022

Conversation

s0undt3ch
Copy link
Member

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.

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>
Comment on lines +229 to +231
libcrypt.so.2 => {libcrypt} (0x0123456789)
libm.so.6 => /usr/lib/libm.so.6 (0x0123456789)
libc.so.6 => /usr/lib/libc.so.6 (0x0123456789)
Copy link
Member Author

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?

Copy link
Contributor

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.

Comment on lines +257 to +260
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)
Copy link
Member Author

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?

Copy link
Contributor

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]
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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

Copy link
Member Author

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.

@dwoz dwoz merged commit ac00a14 into saltstack:main Dec 5, 2022
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.

None yet

2 participants