Skip to content

[test] Suppresses Pylint warnings in lit config scripts. #63910

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WeZZard
Copy link
Contributor

@WeZZard WeZZard commented Feb 25, 2023

Suppresses Pylint/Pylance warnings in lit config scripts which caused by lit_config, config and SubstituteCaptures is not defined in the script.

Moreover, this pull request removes unnecessary code in test/lit.cfg which spotted by Pylance.

Resolves #63907

@WeZZard WeZZard changed the title [test] Suppresses Pylint warning in lit config scripts. [test] Suppresses Pylint warnings in lit config scripts. Feb 25, 2023
ndk_platform_tuple = get_architecture_value(armv7="armeabi-v7a",
aarch64="arm64-v8a")
ndk_platform_triple = get_architecture_value(armv7="arm-linux-androideabi",
aarch64="aarch64-linux-android")
Copy link
Member

Choose a reason for hiding this comment

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

These NDK deletions are fine, I confirmed that they're unused.

@finagolfin
Copy link
Member

@hughbe, I see you originally added the Python linter we still use here, could you review or suggest someone who will?

@WeZZard
Copy link
Contributor Author

WeZZard commented Mar 7, 2023

Hi, there. Please review this commit. With this commit, we can make Pylint/Pylance usable for lit configs.

@finagolfin
Copy link
Member

@etcwilde, just stumbled on this again, maybe you'd be interested in pushing this in?

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.

get_architecture_value and ndk_platform_triple is no longer used in test/lit.cfg and can be removed
2 participants