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

Upgrade dependencies (install, dev, linting, dev_helper) #1179

Merged
merged 15 commits into from
Mar 28, 2022

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Mar 27, 2022

What does this PR do?

This bumps the versions of many of the project's dependencies.

Most of the install dependencies provide extra features or bugfixes, with the addition that the zulip package now incorporates some code that was previously defined locally so that can be refactored out. The only downside of the latter is that this is less explicit in our code, hence the minor additional comments.

Other than bumping linting dependencies generally, the upgraded mypy will allow for improving our use of TypedDict, among other possibilities. Additional typing dependencies should help; we could consider one for beautifulsoup4, but this requires further analysis so I've left it at this time.

Tested?

  • Manually
  • Existing tests (adapted, if necessary)
  • New tests added (for any new behavior)
  • Passed linting & tests (each commit)

There should not be any significant feature changes in the dependencies, so I expect tests to pass fine.

Notes & Questions

The change to gitlint may require an uninstall and reinstall. I've not made an update to the documentation regarding this (at least yet) as existing developers tend to be involved on chat.zulip.org, where I'll raise this point.

Potential follow-up:

  • investigate adding the type package for beautifulsoup4
  • investigate extra changes possible via the mypy upgrade (eg. in TypedDict with total=False)
  • update gruvbox theme to use pygments gruvbox theme directly, rather than an approximation

neiljp added 15 commits March 25, 2022 16:01
This may require extra development documentation due to
jorisroovers/gitlint#250, which applies for upgrades.
These are upgraded simultaneously due to a co-dependence upon
`pycodestyle`.
Other than general improvements, this enables extra themes, including
the gruvbox theme directly, which should simplify our syntax
highlighting.
These API types were originally in zulip-terminal, but were migrated to
the python API since they have use more generally.
@neiljp neiljp added this to the Next Release milestone Mar 27, 2022
@zulipbot zulipbot added the size: M [Automatic label added by zulipbot] label Mar 27, 2022
@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!

@neiljp neiljp added the PR ready to be merged PR has been reviewed & is ready to be merged label Mar 27, 2022
@neiljp neiljp merged commit b1189d8 into zulip:main Mar 28, 2022
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 PR ready to be merged PR has been reviewed & is ready to be merged size: M [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants