Skip to content

Flake8: Also check *.pyw and sconscript (#11097)#11099

Merged
feerrenrut merged 2 commits intonvaccess:masterfrom
accessolutions:i11097-flake8-filename
May 4, 2020
Merged

Flake8: Also check *.pyw and sconscript (#11097)#11099
feerrenrut merged 2 commits intonvaccess:masterfrom
accessolutions:i11097-flake8-filename

Conversation

@JulienCochuyt
Copy link
Copy Markdown
Contributor

@JulienCochuyt JulienCochuyt commented May 3, 2020

Link to issue number:

Fixes #11097

Summary of the issue:

Flake8 checks currently ignore linting errors introduced in nvda.pyw or sconscript files.

Description of how this pull request fixes the issue:

Added *.pyw and sconscript to the list of glob patterns to include for checks.

Testing performed:

Ensured linting errors introduced in nvda.pyw and sconscript files are reported.
Ensured linting errors introduced in a .py file are still reported.

Known issues with pull request:

Change log entry:

I don't think this deserves a change log entry.

@lukaszgo1
Copy link
Copy Markdown
Contributor

What about sconstruct, and sconscripts such as cldrDict_sconscript?

@JulienCochuyt
Copy link
Copy Markdown
Contributor Author

@lukaszgo1 wrote:

What about sconstruct, and sconscripts such as cldrDict_sconscript?

Good catch. Thanks for pointing it out.

Changed "sconscript" to "*sconscript" and added "sconstruct".
Performed again the same set of tests as above, including:

  • cldrDict_sconscript
  • sconstruct
  • source/nvda.pyw
  • source/core.py
  • tests/sconscript

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flake8 checks do not include nvda.pyw nor sconscript files

5 participants