Update clang-format and switch to Ruff for Python
Changes:
- Update clang-format
- switch to Ruff for Python linting and formatting
- fix the path bug for
disallow-checksums-update
check
Validated by
-
Core Software -
RTA -
Simulation
Edited by Menglin Xu
Merge request reports
Activity
assigned to @mexu
Hi @clemenci , this is the following MR for !693 (merged). Could you check if the changes I made here are correct? After this, I will include the reformatting of the Python code.
requested review from @clemenci
- Resolved by Menglin Xu
- Resolved by Menglin Xu
added 1 commit
- 1e1f8c82 - add the Pyupgrade equivalent checks for Ruff
added 11 commits
-
72ad6077...ecdd9740 - 2 commits from branch
master
- 39723826 - replace pyupgrade with Ruff and do some small optimizations
- 73fc2aed - fix the check path for the checksums rule
- 6164481e - use -E to match the files
- 3a7fd73f - add Json in .clang-format
- 7e65bfa3 - add clang-format
- de84b4d2 - add ruff.toml
- d2a5fbdc - exclude check-yaml
- 6e5cf5b0 - add the Pyupgrade equivalent checks for Ruff
- 1842b80f - run the pyupgrade checks too
Toggle commit list-
72ad6077...ecdd9740 - 2 commits from branch
added 2 commits
Thanks @clemenci for your comments! I think the main issue was that I missed some
pyupgrade
parts. Hopefully, everything looks more reasonable now. Could you take another look before I introduce a lot of changes due to formatting?- Resolved by Menglin Xu
- Resolved by Menglin Xu
I just tested this branch locally and I realized I made some mistakes in the suggestions, so I fixed them and pushed the changes (including an update of Ruff, which desn't harm).
Please register or sign in to reply