Skip to content

github workflows: Enhance Python workflow to include linting#4

Merged
nathanchance merged 3 commits into
ClangBuiltLinux:mainfrom
nathanchance:add-python-linting
Dec 7, 2022
Merged

github workflows: Enhance Python workflow to include linting#4
nathanchance merged 3 commits into
ClangBuiltLinux:mainfrom
nathanchance:add-python-linting

Conversation

@nathanchance

Copy link
Copy Markdown
Member

flake8 and pylint have several useful warnings that can help catch
problems before they occur at run time. Integrate them into the current
yapf.yml and rename to python_lint.yml.

The disabled pylint warnings are completely opinionated based on my own
personal Python code, as I have been running this for a couple weeks on
my own but I figured it was worth integrating here to use for CBL Python
code.

This will require updates to all repositories that rely on yapf.yml,
which I will be handling shortly.

flake8 and pylint have several useful warnings that can help catch
problems before they occur at run time. Integrate them into the current
yapf.yml and rename to python_lint.yml.

The disabled pylint warnings are completely opinionated based on my own
personal Python code, as I have been running this for a couple weeks on
my own but I figured it was worth integrating here to use for CBL Python
code.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>

@compnerd compnerd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM (needed for ClangBuiltLinux/containers#48)

build-llvm.py triggers this. It might be possible to split the script up
into smaller modules and reduce the number of directories in the
Directories class but that can be done at a later time. Turn them off
for now.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance nathanchance merged commit 47e2f66 into ClangBuiltLinux:main Dec 7, 2022
@nathanchance nathanchance deleted the add-python-linting branch December 7, 2022 19:46
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.

3 participants