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

Flake8: ignore source/comInterfaces directory #10929

Merged

Conversation

josephsl
Copy link
Collaborator

@josephsl josephsl commented Apr 1, 2020

Link to issue number:

Fixes #10924

Summary of the issue:

When COM interfaces modified by third-party modules are added/changed and scons lint is run, Flake8 issues hundreds of errors.

Description of how this pull request fixes the issue:

As third-party modules live in source/comInterfaces folder, ignore the contents of the folder altogether.

Testing performed:

Source code copy of NVDA, with scons lint run before nad after this change to make sure no errors are encountered.

Known issues with pull request:

None

Change log entry:

Possibly changes for developers:
NVDA will no longer issue linting errors when third-party generated interface modules are added or changed. (#10922

Thanks.

Ignore files located in source/comInterfaces directory when linting, as files in there come from third-party generated modules. This affects UI Automation COM interface as new interfaces are added.
@josephsl josephsl requested a review from feerrenrut April 1, 2020 17:09
Copy link
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

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

thanks @josephsl

@feerrenrut feerrenrut merged commit 4125274 into nvaccess:master Apr 2, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone Apr 2, 2020
@feerrenrut
Copy link
Contributor

I won't add an entry to the change log for this since it's pretty minor, but thank you for providing one.

@feerrenrut feerrenrut modified the milestones: 2020.1, 2020.2 Apr 2, 2020
@josephsl josephsl deleted the i10924flake8ignoreComInterfaces branch July 19, 2020 22:12
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.

Flake8: ignore Python modules generated by third-party dependencies
3 participants