Skip to content

Commit 956c814

Browse files
committed
chore: fix MathlibTest/Header
1 parent e89d51d commit 956c814

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Mathlib/Tactic/Linter/DirectoryDependency.lean

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ We always allow imports of `Init`, `Lean`, `Std`, `Qq` and
166166
def allowedImportDirs : NamePrefixRel := .ofArray #[
167167
-- This is used to test the linter.
168168
(`MathlibTest.DirectoryDependencyLinter, `Mathlib.Lean),
169-
(`MathlibTest, `Mathlib.Lean),
169+
-- Mathlib.Tactic has large transitive imports: just allow all of mathlib,
170+
-- as we don't care about the details a lo
171+
(`MathlibTest.Header, `Mathlib),
172+
-- (`MathlibTest.Header, `Mathlib.Tactic),
173+
-- (`MathlibTest.Header, `Mathlib.Deprecated),
174+
(`MathlibTest.Header, `Batteries),
175+
(`MathlibTest.Header, `Lake),
170176

171177
(`Mathlib.Util, `Batteries),
172178
(`Mathlib.Util, `Mathlib.Lean),

0 commit comments

Comments
 (0)