ADR suggestion: New code should be formatted using a linter #3171
Replies: 5 comments 1 reply
-
ORNL gathers best practices like linting here: https://github.com/neutrons/python_project_template |
Beta Was this translation helpful? Give feedback.
-
Do a single formatting PR that applies a linter to all code. pre or post v6.1.0? |
Beta Was this translation helpful? Give feedback.
-
With the new
|
Beta Was this translation helpful? Give feedback.
-
A way to nudge developers into adopting some linting tool can be to add the app pre-commit ci in the repository. Pre-commit ci will add a "fix up" commit to PR:s that don't follow the linting rules. |
Beta Was this translation helpful? Give feedback.
-
Comments from technical meeting
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As discussed during the code camp (07/01/2025) we are trying to move towards proper code formatting with a linter.
ruff
seems to be one solution, as it is very popular and allows not just checking but also automatic formatting.We can start by requiring all the new code to be properly formatted but also spend time on the main body of the code.
Beta Was this translation helpful? Give feedback.
All reactions