Release 0.182.0#2978
Conversation
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Adds the drf-serializer-orm-check hook (mirroring the definition from mitodl/ol-django) to detect Django ORM queries inside DRF serializer methods (N+1 risk). Uses repo: local so pre-commit only installs mitol-drf-lint without attempting to pip-install the ol-django workspace root (which has internal workspace dependencies unavailable on PyPI). Generates an initial baseline file (drf_lint_baseline.json) recording existing violations so the hook only flags new issues going forward. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Code Review
This pull request updates the project version to 0.182.0 and includes a wide range of dependency updates for both Python and Node.js environments. A significant addition is the implementation of a new pre-commit hook, drf-serializer-orm-check, designed to detect N+1 query risks in Django Rest Framework serializers, supported by a baseline file for existing issues. Feedback suggests pinning the version of the mitol-drf-lint dependency within the pre-commit configuration to ensure consistency with the development environment.
| additional_dependencies: | ||
| - mitol-drf-lint |
There was a problem hiding this comment.
It is recommended to pin the version of mitol-drf-lint in the additional_dependencies list to match the version used in the project's development dependencies (as seen in pyproject.toml). This ensures that the pre-commit hook runs with a consistent version across different environments and prevents unexpected failures if a new version of the linter is released with breaking changes or new rules.
additional_dependencies:
- mitol-drf-lint==2026.4.2
Tobias Macey
renovate[bot]