Merge pull request #312 from input-output-hk/update_docstring_types
refactor: use builtin generics for type hints in docstrings
refactor: use builtin generics for type hints in docstrings
Update type hints to use builtin generics (e.g., list, tuple) instead of capitalized versions (e.g., List, Tuple) in docstrings and return annotations. This improves consistency with modern Python typing conventions.
feat(txgroup): add byron witness and ref script size params
Extend the TransactionGroup fee calculation to accept optional parameters for the number of Byron witnesses and the size of reference scripts. This allows for more precise fee estimation in transactions involving Byron witnesses or reference scripts.
chore(pyproject): remove black and isort config sections
Removed the [tool.black] and [tool.isort] sections from pyproject.toml. Formatting and sorting of imports is handled by ruff.
chore(ci): improve lint workflow with pre-commit caching
Refactor the repo_lint GitHub Actions workflow to: - Use Python 3.11 instead of 3.10. - Add caching for pre-commit hooks to speed up runs. - Install pre-commit hooks explicitly and show logs on failure. - Run pre-commit linters with color and diff output on failure. These changes improve linting reliability and performance in CI.
feat(lint): add pyrefly and update linting configs
- Add pyrefly to pre-commit hooks and development requirements. - Configure pyrefly in pyproject.toml with project-specific settings and per-file ignores. - Update ruff linting rules to include ANN and add per-file ignore for docs. - Pin mypy and pre-commit versions for consistency. - Add pyrefly ignore comments in code to suppress specific errors.
refactor(gov): move governance query methods to query_group
Moved all Conway governance query-related methods from the dedicated `gov_query_group.py` module into the existing `query_group.py` as methods with a `get_` prefix. Removed the now-redundant `gov_query_group.py` and its references from `gov_group.py`. This consolidates governance query functionality under a single group, simplifying the codebase and reducing duplication.