-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fix Ruff CI errors #938
Fix Ruff CI errors #938
Conversation
Hi, there are a bunch of other changes here that don't relate to the ruff error. Can you give your reasoning for those or maybe put them in their own explanatory commits? |
I'm honestly at a bit of a loss to explain why the master protection check is failing. That's weird. |
Hi @Serene-Arc ! These changes are to fix linting errors discovered by Ruff (previously, it was not seeing that, as it was not working): ruff check .
I committed these changes with a separate commit (ff27049), for clarity. When it comes to the "Protect master branch / merge_check (pull_request)" - it is protected (and from one I see, unused). By mistake, I created a PR to master, only later changed it to development (but it didn't rerun tests). Sadly, "Python Test / test (ubuntu-latest, 3.9, .sh) (pull_request)" is failing, but it was in the same way with all other PRs and commits. I am unsure if it was due to code changes or Reddit changing its way - it deserves another Issue/PR. Tests with external API calls are (while often necessary) a tricky thing. |
The tests fail due to the token that Ali has set up as the repository secret still being the BDFR's token, instead of a private one. That means that we're sharing the rate limit with every other BDFR user that hasn't changed the token, and the tests fail. I don't have the ability to change that token, so the tests are failing. |
Too bad! I assume Ali does not have space to change that. In this case, it is burning 3x40min of GitHub Actions, and hardly informative. For one project, I did two test sets - one internal and the other - everything involving an external API. Anyway, regarding Ruff - does it look good to you, and is it up for merging? |
@Serene-Arc And how about this PR? Would you like to merge it? |
lgtm |
A potential solution for #937
Do you give it a go @Serene-Arc ?
I am open to other solutions for Ruff, if needed.