Merged
Conversation
- Use `importlib.resources` instead of deprecated `pkg_resources`. - Ensures compatibility with Python 3.9+. - Fixes deprecation warnings in `util.py`.
Contributor
Author
|
Resolves #49 |
potzenhotz
approved these changes
Feb 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces several key updates for the AT Python Template, moving it to version 1.1. It includes important fixes, enhancements, and dependency updates, alongside improvements in configuration files, Docker integration, and pre-commit hook updates.
Changes:
Python Version Update: Ensured the project is compatible with Python 3.9 and newer versions by updating the Python version in pyproject.toml and environment-dev.yml.
GitHub Actions: Refined the GitHub Actions workflows to ensure they only use poetry for dependency management, improving the consistency of the build pipeline.
Dependency Management:
Updated various dependencies including pytest-cov to version 6, pre-commit hooks, and Docker-related tags.
Upgraded pyproject.toml and aligned environment-dev.yml and environment.yml with the updated dependencies.
Test Coverage Integration: Added support for test coverage reporting in the GitHub Actions pipeline and fixed coverage integration.
Refactoring: Refactored the utility code by replacing pkg_resources with importlib.resources to ensure better maintainability.
Pre-commit Hook Updates:
Updated several pre-commit hooks:
- pycqa/isort to v5.13.2
- pre-commit/pre-commit-hooks to v4.6.0
- astral-sh/ruff-pre-commit to v0.9.7
- asottile/pyupgrade to v3.19.1
Docker:
Updated the Conda Forge/MambaForge Docker tag to v24 for better compatibility.
Other Updates:
Adjusted requirements.txt and other files to ensure the project is using the latest stable versions of dependencies.
Fixed tests that were affected by the installation of black via pip, ensuring proper versioning constraints.