Skip to content

Name the fallback reason for Python packaging and coverage settings #323

Open

Description

@adityankale190895

In a pytest project, a change to only one of these runs the full suite, with the reason Unknown changed file: …:

  • uv.toml, poetry.toml, pdm.toml and hatch.toml decide how the environment and dependencies are installed.
  • .coveragerc configures coverage, which can fail a run through fail_under when pytest-cov is in use.

Done when:

  • The packaging files report Tool configuration changed: Python packaging settings.
  • .coveragerc reports Tool configuration changed: coverage settings.
  • There's a test case for each. A pytest fixture works best, using the same Python project files as tests/repo/python-adapter.test.ts. The Jest fixture in tool-config-reasons.test.ts is fine too if that's simpler: the reason doesn't depend on the language.
  • The Python section of docs/using-diffci.md mentions them.

New to DiffCI? See CONTRIBUTING.md. #142 and its PRs (#144, #155, #156) are a worked example of this exact change. Add a case to tests/repo/tool-config-reasons.test.ts, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Activity

  1. added
    enhancement
    good first issue
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions