Skip to content

Conversation

@bastimeyer
Copy link
Member

Step 1 of 3+x, as detailed in #5145

This replaces flake8 and plugins with ruff, sets a similar config, and updates the docs.

The import linting config is missing and will be added in a subsequent PR via ruff's isort "I" rules, which are slightly different and require lots of module code changes. This PR only changes the bare minimum for having a short diff without any code changes.

@bastimeyer
Copy link
Member Author

Apparently there was some kind of hiccup on the side of netlify which let the docs preview build fail and now after the manual re-build there's no status check. Link to the rendered docs here:
https://deploy-preview-5149--streamlink.netlify.app/developing.html#code-style

@gravyboat
Copy link
Member

This looks good, I don't have time to give the second PR the look it deserves right now, will have to do it later tonight.

@gravyboat gravyboat merged commit 98596e9 into streamlink:master Feb 9, 2023
@bastimeyer bastimeyer deleted the tools/ruff/init branch February 9, 2023 17:57
@bastimeyer
Copy link
Member Author

#5150 only includes trivial changes, so apart from scrolling through the entire diff, there's not much going on. The diff view on GitHub unfortunately is (still) terrible, and looking at the diff locally is just way more efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants