-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Description
During the maintenance meeting, we discussed briefly using ruff, since this tool unifies linting, formatting, and sorting, in one tool. One of its main benefits is its performance, and it has gained large traction and is backed by large projects.
It could replace black, flake8 (plus numerous flake8 plugins), and isort, that we currently use in our CI tests, but it also supports other tools as well. This would simplify our CI tests and reduce maintenance to a single tool and config file.
Lets discuss here and get a working ruff.toml file that matches and replaces our current checks done with other tools. At the moment it looks like flake8-rst-docstring is not included, but its possible that its already integrated.
Our new ruff/pre-commit check has been merged and will now run on Azure for all repos, below is a list tracking the progress of all our PRs bringing our repos up to date with the new checks:
- adflow (Ruff fixes mdolab/adflow#393) @A-CGray
- pyoptsparse (Ruff fixes mdolab/pyoptsparse#455) @A-CGray
- baseclasses (Resolve formatting and linting errors mdolab/baseclasses#103) @tjiading
- pygeo (Ignore ruff and pre-commit config files mdolab/pygeo#276) @JavierAlbaM
- pyhyp (Ignore ruff and pre-commit config files mdolab/pyhyp#102) @wkupiec
- idwarp (Ruff fixes mdolab/idwarp#105) @mpdutta
- cgnsutilities (ruff and pre-commit config files mdolab/cgnsutilities#78) @ArshSaja
- CMPLXFOIL (Ruff fixes mdolab/CMPLXFOIL#36) @sabakhshi
- complexify (Ignore ruff and pre-commit config files. mdolab/complexify#12) @jrram
- OpenAeroStruct (Switch to Ruff linting and formatting mdolab/OpenAeroStruct#466) @kanekosh
- multipoint (Insert link to PR here) @Ananyakd314
- pyspline (Ruff fixes mdolab/pyspline#77) @sanjan98
- prefoil (ruff fixes addition mdolab/prefoil#64) @ShounakPallav
- performancecalcs (https://github.com/mdolab/performancecalcs/pull/19) @A-CGray
- pyaerostructure (https://github.com/mdolab/pyaerostructure/pull/78) @A-CGray
- pylayout (https://github.com/mdolab/pylayout/pull/29) @A-CGray
- pytacs (https://github.com/mdolab/pytacs/pull/100) @A-CGray
- pyXDSM (Ruff fixes mdolab/pyXDSM#60) @A-CGray
- tacs_orig (https://github.com/mdolab/tacs_orig/pull/100) @A-CGray
- weightandbalance (https://github.com/mdolab/weightandbalance/pull/21) @A-CGray
- wimpresscalc (https://github.com/mdolab/wimpresscalc/pull/17) @A-CGray
- pyfriction (https://github.com/mdolab/pyfriction/pull/42) @A-CGray
- pysurf (Ruff fixes mdolab/pysurf#40) @A-CGray