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

Filter out unmodified files from list of changed files #545

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Mar 16, 2024

  1. Filter unmodified files by default

    Add `--diff-filter=M` to the git command that fetches changed files. The filter will ignore files that have been renamed or moved, but not had their content changed
    Svenito committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    506e04c View commit details
    Browse the repository at this point in the history
  2. Add added files to filter

    Adding ``--diff-filter=M` will only show modified files, but darker should also check newly added files. Add the `A` option to the diff call to include these
    Svenito committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    244c1c4 View commit details
    Browse the repository at this point in the history
  3. Fix failing tests

    With the added diff filter some tests needed updating to reflect the change
    Svenito committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    b317f0f View commit details
    Browse the repository at this point in the history
  4. Address review comments

    * New line in test to separate test from verification
    * remove empty conftest.py file
    Svenito committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    78fda22 View commit details
    Browse the repository at this point in the history