Skip to content

Conversation

@nasahlpa
Copy link
Member

@nasahlpa nasahlpa commented Sep 18, 2025

  • Update linting rules from the OT upstream repo
  • Pin the linting tools versions
  • Provide script that does auto formatting using yapf and isort - the same tools & configs we use in OpenTitan
  • Apply auto linter to the current code base

Update code from upstream repository
https://github.com/lowRISC/opentitan to revision
e65bea6b4e1d8c797ea89212f314987053a0dad4

* [otroot,cleanup] Fix typos in misc comments/docs (Elliot Baptist)
* [python] add ruff linting support and exclude outdated flake8 rules
  (James McCorrie)
* [py,tooling] Remove support for Python <= 3.7 in lintpy.py (Rupert
  Swarbrick)
* [util] Use importlib.metadata in lintpy.py (Rupert Swarbrick)
* Add the project name to the copyright header (Michael Munday)

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa force-pushed the linting branch 2 times, most recently from e00f177 to ced6d2f Compare September 19, 2025 01:35
The script uses yapf and isort identical to what we do in OpenTitan.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
To keep things consistent, use the same auto python linter as we
use in OpenTitan (yapf)

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa marked this pull request as ready for review September 19, 2025 01:50
Copy link
Collaborator

@andrea-caforio andrea-caforio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looking nice. :-)

@nasahlpa nasahlpa merged commit 04f9206 into lowRISC:master Sep 19, 2025
9 checks passed
@nasahlpa nasahlpa deleted the linting branch September 19, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants