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

chore: move from flake8 to ruff for linting #765

Merged
merged 5 commits into from Nov 14, 2022
Merged

Conversation

samsja
Copy link
Member

@samsja samsja commented Nov 14, 2022

Context

ruff is becoming industry standard and start replacing flake8 in modern python (example in fastAPI )

What this PR do

  • add ruff to ci and to pre commit
  • make the code compliant with ruff
  • remove flake8 from ci and precommit

Sami Jaghouar added 4 commits November 14, 2022 10:37
Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
@samsja samsja changed the base branch from main to feat-rewritte-v2 November 14, 2022 10:02
Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
@samsja samsja changed the title chore chore: move from ruff to flake8 for linting Nov 14, 2022
@samsja samsja changed the title chore: move from ruff to flake8 for linting chore: move from flake8 to ruff for linting Nov 14, 2022
@samsja samsja merged commit f9deb39 into feat-rewritte-v2 Nov 14, 2022
@samsja samsja deleted the chore-add-ruff branch November 14, 2022 10:48
JohannesMessner pushed a commit that referenced this pull request Nov 16, 2022
* chore: add ruff and fix most of the errors

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>

* chore: fix all of the rest of ruff problem

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>

* chore: move from flake height to ruff in ci and pre commit

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>

* chore: remove flake8

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>

* chore: remove line lenght ruff

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>

Signed-off-by: Sami Jaghouar <sami.jaghouar@jina.ai>
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
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.

None yet

2 participants