Add tests for repository._transform
Also change the function name, since we're there.
I would like to work on this , could you please assign this me @marco-c
@rajibmitra feel free to work on it! Issues are assigned automatically when there is a PR to fix them.
hello I would like to work on this issue, could you give me some pointers on where to get started? Thanks!
@lantonga we need to add tests for the _transform function of the repository module.
Can someone more intimate with the _transform function either add comments to the file or give us pseudo code / an oversimplification so we can start understanding it?
The function is analyzing a commit and gathering a few metrics from it. What parts of the function are not clear? If you have specific doubts I can help clarifying them.
I'm having trouble installing rs_parsepatch. I installed all dependencies from requirements.txt and test-requirements.txt except rs_parsepatch. This is the error I'm getting:

@alihaiderrizvi from the error, it looks like you need to install Visual Studio.
I installed Visual Studio, and now I'm getting the following error:

Try setting Rust nightly as your default
That worked! rs_parsepatch is installed.
However, when I ran pytest on tests/test_repository.py, many tests return the following error:
Exception: rust-code-analysis is required for code analysis
Am I missing a dependency?
Yes, you will need to install rust-code-analysis. You can install it by using Cargo: cargo install rust-code-analysis-web.
I think I've messed up somewhere while setting up the project because the errors just don't stop 🤦♂️
The TypeError is coming from the following function:
Apologies for "bugging" too much, this is my first shot at OS contribution.
@alihaiderrizvi I'd suggest using Linux or a Linux VM, you'll have a much easier life.
Is this issue open? I would like to work on this.
Yes, it's still open.
Thank you, I'll soon update you with the work.