Fix/linting#591
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
Align Python versions, improve linting checks, refactor error handling and variable names, enhance data processing with pyarrow, and expand test coverage.
- Pinned Python to 3.12.10 across services and added
pyarrowdependency. - Renamed generic variables to
message, replacedLOOKBACK_DAYSwithSEQUENCE_LENGTH, and improved error messages. - Updated data-fetching logic to use IPC streams via
pyarrowand added comprehensive unit tests.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| workflows/backfill_datamanager.py | Removed explicit type annotation for list initialization |
| linter.nu | Modified version-check logic and error messages in linting script |
| infrastructure/monitoring.py | Added storage import and refactored module imports |
| application/predictionengine/src/predictionengine/multi_head_self_attention.py | Renamed error variable for consistency |
| application/predictionengine/src/predictionengine/miniature_temporal_fusion_transformer.py | Added get_parameters method within the class |
| application/predictionengine/src/predictionengine/main.py | Replaced LOOKBACK_DAYS with SEQUENCE_LENGTH and updated timeouts |
| application/predictionengine/src/predictionengine/loss_function.py | Renamed error variable for consistency |
| application/predictionengine/src/predictionengine/long_short_term_memory.py | Renamed error variable for consistency |
| application/predictionengine/src/predictionengine/dataset.py | Renamed error variable for consistency |
| application/predictionengine/pyproject.toml | Pinned Python requirement to ==3.12.10 |
| application/predictionengine/Dockerfile | Updated base image to python:3.12.10 |
| application/positionmanager/src/positionmanager/main.py | Corrected APIError import path |
| application/positionmanager/src/positionmanager/clients.py | Integrated pyarrow and refactored data retrieval/pivot logic |
| application/positionmanager/pyproject.toml | Added pyarrow>=20.0.0 dependency |
| application/datamanager/tests/test_datamanager_models.py | Introduced unit tests for data models |
| application/datamanager/tests/test_datamanager_main.py | Introduced endpoint unit tests |
| application/datamanager/src/datamanager/main.py | Fixed variable usage for summary_date and URL building |
| application/datamanager/pyproject.toml | Updated Python requirement to ==3.12.10 |
| application/datamanager/Dockerfile | Updated base image to python:3.12.10 |
| .claude/settings.local.json | Configured additional local settings |
Comments suppressed due to low confidence (5)
linter.nu:34
- The version consistency assertion is commented out, disabling the intended check; re-enable or replace this assertion to enforce Dockerfile and pyproject versions match.
# assert equal $dockerfile_version $pyproject_version "$dockerfile_version ..."
linter.nu:18
- [nitpick] The error message 'missing dockerfile from' is less clear and grammatically inconsistent; consider rephrasing to 'Dockerfile not found in {service}' for clarity.
error make {msg: "missing dockerfile from ($service)"}
workflows/backfill_datamanager.py:16
- Removing the explicit
list[int]annotation reduces type-checking clarity; consider retainingresults: list[int] = []to preserve type hints.
results = []
infrastructure/monitoring.py:1
- The 'buckets' import is unused in this module; remove it to keep imports clean.
import buckets
application/positionmanager/src/positionmanager/clients.py:106
- Pivot parameters 'T' and 'c' likely don't match your DataFrame columns; confirm the actual column names (e.g., 'ticker' and 'close_price') before pivoting.
.pivot(on="T", index="date", values="c")
fix linting
19107c0
into
06-02-fix_inter-service_communication_patterns
No description provided.