Python linting through ruff#888
Conversation
240dd86 to
6ee3f5d
Compare
- GitHub inline linting annotations. - Resolve pre-existing quotation issues. - Replace flake8 with ruff and monorepo configuration.
46afce6 to
8038393
Compare
|
Hi, @kieran-ryan ! Thank you for this PR. I was thinking about switching to Please, give me a little bit more time to check everything is alright (at first glance, it seems so). I will post back soon! |
Absolutely @delatrie, much appreciated! I've applied the same within other Python test frameworks and tooling and have similarly found a positive experience.
I've aimed for parity with this pull request, and would be interested to raise a subsequent merge request for review to extend to further capabilities of ruff - which is where we see the larger benefit in terms of formatting, code quality improvements, updating to later language syntax, catching bugs, etc. |
delatrie
left a comment
There was a problem hiding this comment.
Hi, @kieran-ryan
I've checked one more time and see nothing wrong. Let's go forward with ruff.
Thank you!
Replace
flake8withrufffor linting Python code.Context
--output-format=githubruff check --select=Q --fix- which is a drop-in replacement forflake8-quotesflake8-quoteswas applied within.flake8, though as the dependency is not specified within the repository or installed within the pipeline, the formatted was not enforced or applied.# noqacommentsSee ruff's default configuration for documentation on default rule disparity with
flake8.pyproject.tomlsupportpoe linterorruff checkfrom any locationDropped legacy Jenkins linting configuration.