Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the new code in a side-directory #23

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

praiskup
Copy link
Member

This makes a better Ruff linter isolation; without this, Ruff traverses all the gitroot sub-directories, including separate worktrees, temporary files, etc. Then, since potential issues in such files are not present in the "old code" (even before linted on a clean checkout), vcs-diff-lint would report such irrelevant errors as "new" issues.

After this commit, both the old and new code is analyzed in a clean separate temporary directory.

Complements: 38412fb

This makes a better Ruff linter isolation; without this, Ruff traverses
all the gitroot sub-directories, including separate worktrees,
temporary files, etc.  Then, since potential issues in such files are
not present in the "old code" (even before linted on a clean checkout),
vcs-diff-lint would report such irrelevant errors as "new" issues.

After this commit, both the old and new code is analyzed in a clean
separate temporary directory.

Complements: 38412fb
@FrostyX
Copy link
Member

FrostyX commented Aug 27, 2024

I didn't test it but LGTM

@praiskup praiskup merged commit dee173f into fedora-copr:main Aug 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants