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

Dependencies: Add Zulint. #980

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

Abhirup-99
Copy link
Contributor

No description provided.

@zulipbot zulipbot added the size: XL [Automatic label added by zulipbot] label Apr 3, 2021
@Abhirup-99 Abhirup-99 changed the title Dependencies: Add Zulint. [WIP] Dependencies: Add Zulint. Apr 3, 2021
@Abhirup-99 Abhirup-99 force-pushed the add_zulint branch 7 times, most recently from 90e5678 to e8f5164 Compare April 5, 2021 07:17
@zulipbot zulipbot added size: M [Automatic label added by zulipbot] and removed size: XL [Automatic label added by zulipbot] labels Apr 5, 2021
@zulipbot zulipbot added size: XL [Automatic label added by zulipbot] and removed size: M [Automatic label added by zulipbot] labels Apr 5, 2021
@Abhirup-99 Abhirup-99 changed the title [WIP] Dependencies: Add Zulint. Dependencies: Add Zulint. Apr 5, 2021
@Abhirup-99
Copy link
Contributor Author

@zulipbot add "PR needs review"

@zulipbot zulipbot added the PR needs review PR requires feedback to proceed label Apr 5, 2021
@Abhirup-99
Copy link
Contributor Author

Changes in the pr:

  • Added matrix for linting workflow.
  • Added custom script for flake8, to show success message on completion.
  • Brought tools under flake8.

The commit integrates zulint in the linting infrastructure.
The code structure for lint-all has been taken from python api,
and modified for our needs.
The lister.py was a custom script for file reading
operations. The commit replaces it with inbuilt functions
from zulint.
The commit removes individual steps to run mypy, isort
and flake8, and replaces it with a matrix to run them
through zulint.
The commit updates generate_hotkeys and gitlint_extra_rules
to remove errors from flake8, bringing them under linting.
The commit modifies the behaviour of running lint, printing a
successful message on completion of flake8 linter. The
original script didn't produce any output on success.
@neiljp
Copy link
Collaborator

neiljp commented Jun 3, 2021

@Abhirup-99 I see you're not on chat.zulip.org and I'm guessing you're busy in the near future, but just checking if you plan to take this up again soon before I pick this up myself or suggest it to someone else.

@Abhirup-99
Copy link
Contributor Author

Hi, I am a bit busy now, it would be better if someone else takes the work forward.

@zulipbot
Copy link
Member

Heads up @Abhirup-99, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: infrastructure Project infrastructure has conflicts PR needs review PR requires feedback to proceed size: XL [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants