Skip to content

Name the fallback reason for lint, type-check and text settings #324

Open

Description

@adityankale190895

These configure linters and type checkers, which CI often runs next to the tests: ruff.toml, .ruff.toml, mypy.ini and .flake8. Two more control how files are read or formatted:

  • .editorconfig, which Prettier reads by default
  • .gitattributes, which can change line endings on checkout

A change to any of them runs the full suite, with the reason Unknown changed file: ….

Done when:

  • ruff.toml, .ruff.toml and .flake8 report Tool configuration changed: lint settings.
  • mypy.ini reports Tool configuration changed: type-check settings.
  • .editorconfig and .gitattributes report Tool configuration changed: text and line-ending settings.
  • There's a test case for each, and the docs row lists them.

Don't narrow any of these, for example to "lint-only, so no tests". A test can read them, and CI checks other than tests may depend on them. That's a design question for a separate issue.

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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions