Skip to content

[dvsim] Modernise Python code #28800

@Timmmm

Description

@Timmmm

Description

Would you guys be open to changes to modernise the extensive Python code in OpenTitan? This is normally my minimum bar for making working with Python tolerable:

  • Static type hints, validated with Pyright (Mypy is not very good).
  • Typer for argument parsing.
  • Autoformatting via Black or Ruff (maybe you already have this, I'm not sure).
  • Use uv for project management (instead of requirements.txt). I'm not sure what the state of this is since you have both pyproject.toml and python-requirements.txt.

If I make PRs for those would they be accepted?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions