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

Blacken/lint rest of tools/ #1092

Merged
merged 10 commits into from
Jul 21, 2021
Merged

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Jul 21, 2021

What does this PR do?

This is a follow-up to #1087, which did not fully achieve its aim since python scripts without a .py ending were not identified.

Other scripts are now updated to be covered, with an additional script providing a list of tools in python, given certain known exclusions. This script is used as a module in tools/lint-all, and separately in CI to explicitly include those files.

A broader approach is likely possible with zulint or using lister.py in future, but having these files covered and tested, and not accidentally losing compliance is the intent here.

Tested?

  • Manually
  • Existing tests (adapted, if necessary)
  • New tests added (for any new behavior)
  • Passed linting & tests (each commit) within limited local test ability right now

@neiljp neiljp added this to the Next Release milestone Jul 21, 2021
@zulipbot
Copy link
Member

Hello @zulip/server-refactoring members, this pull request was labeled with the "area: refactoring" label, so you may want to check it out!

@zulipbot zulipbot added the size: XL [Automatic label added by zulipbot] label Jul 21, 2021
@neiljp neiljp force-pushed the 2021-07-20-blacken-all-tools branch from 1b87dd4 to 1270f14 Compare July 21, 2021 18:11
This does not affect explicit calls with tools/, but does avoid
accidentally applying flake8 to a nested virtual environment containing
many source files (currently 62 vs 2008).
@neiljp
Copy link
Collaborator Author

neiljp commented Jul 21, 2021

Just pushed a minimal update here to be compatible with the run-mypy change related to the typing work from @prah23 and apply some commit text polish.

Will merge very soon.

@neiljp neiljp force-pushed the 2021-07-20-blacken-all-tools branch from 1270f14 to 62c681c Compare July 21, 2021 18:25
@neiljp neiljp merged commit d87fa39 into zulip:main Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: infrastructure Project infrastructure area: refactoring size: XL [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants