Skip to content

refactor(py): update dev tools nox & mise#42

Merged
benbenbang merged 1 commit into
mainfrom
dev/update_somefiles
Sep 3, 2025
Merged

refactor(py): update dev tools nox & mise#42
benbenbang merged 1 commit into
mainfrom
dev/update_somefiles

Conversation

@benbenbang

Copy link
Copy Markdown
Owner

This pull request introduces improvements to the development workflow and code quality enforcement, primarily by adding new pre-commit hooks and modernizing Python type annotations. The changes also include minor code style updates for readability.

Development workflow enhancements:

  • Added ruff and ruff-format hooks to .pre-commit-config.yaml to enable automatic code linting and formatting for Python files.

Python code modernization and style improvements:

  • Updated type annotations in noxfile.py from List[str] to the more modern list[str] syntax, and added from __future__ import annotations for compatibility with newer Python versions. [1] [2]
  • Improved code readability in _update_npm_packages by reformatting the conditional statement to span multiple lines and updating the print message for clarity.
  • Added a pyright directive to the nox import to suppress missing import warnings in type checking tools.

@github-actions github-actions Bot added the triage label Sep 3, 2025
@benbenbang
benbenbang merged commit ccec945 into main Sep 3, 2025
2 checks passed
@benbenbang
benbenbang deleted the dev/update_somefiles branch September 3, 2025 07:02
@ptah-technical-app

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant