Skip to content

chore: move from flake8 to ruff for linting#765

Merged
samsja merged 5 commits into
feat-rewritte-v2from
chore-add-ruff
Nov 14, 2022
Merged

chore: move from flake8 to ruff for linting#765
samsja merged 5 commits into
feat-rewritte-v2from
chore-add-ruff

Conversation

@samsja

@samsja samsja commented Nov 14, 2022

Copy link
Copy Markdown
Member

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.

2 participants