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

Ruff #806

Merged
merged 16 commits into from
Oct 12, 2023
Merged

Ruff #806

merged 16 commits into from
Oct 12, 2023

Conversation

mfocko
Copy link
Member

@mfocko mfocko commented Sep 24, 2023

No description provided.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/c5a38afb88da4dc7a28cac9c1b32154a

pre-commit NODE_FAILURE Node request 200-0006421898 failed in 0s
ogr-tests-rpm NODE_FAILURE Node request 200-0006421899 failed in 0s
ogr-tests-pip-deps NODE_FAILURE Node request 200-0006421900 failed in 0s
ogr-reverse-dep-packit-tests NODE_FAILURE Node request 200-0006421901 failed in 0s

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/3c242e04af8b4fb8828b17bf4fc08cb8

pre-commit NODE_FAILURE Node request 200-0006422335 failed in 0s
ogr-tests-rpm NODE_FAILURE Node request 200-0006422336 failed in 0s
ogr-tests-pip-deps NODE_FAILURE Node request 200-0006422337 failed in 0s
ogr-reverse-dep-packit-tests NODE_FAILURE Node request 200-0006422338 failed in 0s

@mfocko
Copy link
Member Author

mfocko commented Sep 24, 2023

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/7906d1d0cc6344cd890ac670648f10df

pre-commit NODE_FAILURE Node request 200-0006422381 failed in 0s
ogr-tests-rpm NODE_FAILURE Node request 200-0006422382 failed in 0s
ogr-tests-pip-deps NODE_FAILURE Node request 200-0006422383 failed in 0s
ogr-reverse-dep-packit-tests NODE_FAILURE Node request 200-0006422384 failed in 0s

ruff.toml Outdated Show resolved Hide resolved
@jpopelka
Copy link
Member

I've remembered that that's still #696 and #723 which are also AFAIR about adding more Optional to the code (as your last commit does). I don't quite remember the issues why we haven't finished the #723 but can you please double-check that your last commit doesn't somehow hit the same problems?

Signed-off-by: Matej Focko <[email protected]>
Signed-off-by: Matej Focko <[email protected]>
Signed-off-by: Matej Focko <[email protected]>
Signed-off-by: Matej Focko <[email protected]>
They are included with the ruff, there is no need to have duplicit
checks that take more time than the whole ruff suite itself.

Signed-off-by: Matej Focko <[email protected]>
* enable the performance rules in ruff
* enable the Ruff-specific rules in ruff
* disable check for ambiguous characters in comments; I intend to use
  guillemets

Signed-off-by: Matej Focko <[email protected]>
@mfocko
Copy link
Member Author

mfocko commented Oct 12, 2023

I've remembered that that's still #696 and #723 which are also AFAIR about adding more Optional to the code (as your last commit does). I don't quite remember the issues why we haven't finished the #723 but can you please double-check that your last commit doesn't somehow hit the same problems?

Had a look, tl;dr:

  • Optional has been added to some places where it doesn't make much sense, like PR ID was to be wrapped in Optional just because of what gets returned from the dependency :/
  • failing requre tests…

I'll go through the changes to check it here, but I doubt it either includes the errors or supersedes the PR :/

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@mfocko mfocko self-assigned this Oct 12, 2023
@mfocko mfocko added the mergeit When set, zuul wil gate and merge the PR. label Oct 12, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/4774e74c58c1456dac01eba667fad6a2

✔️ pre-commit SUCCESS in 2m 36s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 346e911 into packit:main Oct 12, 2023
27 checks passed
@mfocko mfocko deleted the ruff branch October 12, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants