You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Name the fallback reason for lint, type-check and text settings #324
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.
.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