[DevX] Improve dependency management and virtual environment setup guide#277
[DevX] Improve dependency management and virtual environment setup guide#277Carla232 wants to merge 14 commits into
Conversation
Review Summary by Qodo
WalkthroughsDescription• Add pyproject.toml with project metadata and dependency groups for uv support • Create comprehensive virtual environment setup guide with uv and pip workflows • Update contributing guide with modern development setup instructions • Replace python3 with python in pre-commit hooks for better portability • Include OpenCV packages in pip fallback requirements Diagramflowchart LR
A["pyproject.toml<br/>Project metadata<br/>& dependencies"] --> B["Virtual Environment<br/>Setup Guide"]
A --> C["CONTRIBUTING.md<br/>Updated workflows"]
B --> C
D["requirements.txt<br/>OpenCV packages"] --> C
E["pre-commit hooks<br/>python command"] --> C
File Changes1. pyproject.toml
|
Code Review by Qodo
1.
|
Udayraj123
left a comment
There was a problem hiding this comment.
thanks for the PR, please address the comments added
|
Addressed all requested changes: switched docs to uv-only workflow, removed pip/venv fallback, deleted requirements.txt, and updated README accordingly. |
Udayraj123
left a comment
There was a problem hiding this comment.
looks good. Can you please add a recording/screenshot of a pre-commit hook working the new setup?
| for file in glob(os.path.join(_dir, EXT)): | ||
| relative_path = os.path.relpath(file, output_dir) | ||
| sample_outputs[relative_path] = read_file(file) | ||
| relative_path = os.path.relpath(file, output_dir).replace(os.sep, "/") |
There was a problem hiding this comment.
I guess this is useful for passing snapshots
| sample_outputs[relative_path] = read_file(file) | ||
| relative_path = os.path.relpath(file, output_dir).replace(os.sep, "/") | ||
| sample_outputs[relative_path] = ( | ||
| read_file(file).replace("\\", "/").replace("\r\n", "\n") |
There was a problem hiding this comment.
maybe introduce a small util read_and_process_output_file()
| mock_wait_key.return_value = ord("q") | ||
|
|
||
| # Stabilize snapshot file names across local timezones. | ||
| mock_time_suffix = mocker.patch("src.utils.file.strftime") |
There was a problem hiding this comment.
was this needed explicitly? we are already using freezegun for mocking time
Udayraj123
left a comment
There was a problem hiding this comment.
approved with minor comments, please check

Closes #210