-
Notifications
You must be signed in to change notification settings - Fork 98
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
Comprehensive linting and formatting #821
Conversation
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.
⚠️ Clang-Tidy
found issue(s) with the introduced code (1/1)
d7484b0
to
fabd563
Compare
Coverage ReportCreated: 2023-12-04 22:11Click here for information about interpreting this report.
Generated by llvm-cov -- llvm version 14.0.0 |
587e4b0
to
7460399
Compare
d4b63fb
to
a924aba
Compare
8d9aa2f
to
54046fa
Compare
51dc285
to
b0f195e
Compare
b0f195e
to
b23b1b9
Compare
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.
I'm not super familiar with CI scripts nor all that auto-linting shenanigans, I'd let somebody else take a deeper look.
b23b1b9
to
775b1c3
Compare
775b1c3
to
1315250
Compare
115d31a
to
96141eb
Compare
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
96141eb
to
b7fcb8b
Compare
@@ -53,13 +53,13 @@ def infer_mlir_type( | |||
if isinstance(py_val, bool): |
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.
[pylint] reported by reviewdog 🐶
R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
@@ -53,13 +53,13 @@ def infer_mlir_type( | |||
if isinstance(py_val, bool): | |||
return T.bool() | |||
elif isinstance(py_val, int): | |||
if -(2 ** 31) <= py_val < 2 ** 31: | |||
if -(2**31) <= py_val < 2**31: |
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.
[pylint] reported by reviewdog 🐶
R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
This PR implements "comprehensive" linting and formatting for both Python and C/C++. It runs
black
andpylint
for Python;clang-format
andclang-tidy
for C/C++.Notes:
Files changed
tab.This PR itself serves as a test; I made "anti-changes" to
lib/Conversion/AIEVecToLLVM/AIEVecToLLVM.cpp
andpython/util.py
to exercise the formatters and linters. Thus (hopefully), this PR doesn't accurately represent the typical amount of noise the linters introduce.Note: I do not intend to "own" this code. This is a shared resource and should be shared responsibility.