Skip to content

Commit 29b584d

Browse files
codexByron
authored andcommitted
Keep root lint scoped to GitPython
The imported gitdb and smmap histories contain their own legacy formatting and configuration. Letting GitPython's root pre-commit configuration scan those trees produced unrelated failures and would turn the subtree merge into a wholesale reformat. Exclude the imported project directories at the root so existing GitPython checks retain their previous scope; each dependency continues to own its source style.
1 parent 60ff1d0 commit 29b584d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
exclude: ^(?:gitdb|smmap)/
2+
13
repos:
24
- repo: https://github.com/codespell-project/codespell
35
rev: v2.4.2

test/test_submodule.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ def test_root_module(self, rwrepo):
508508
with rm.config_writer():
509509
pass
510510

511-
rsmsp = ["git/ext/gitdb", "gitdb/ext/smmap"]
512-
513511
# Cannot set the parent commit as root module's path didn't exist.
514512
self.assertRaises(ValueError, rm.set_parent_commit, "HEAD")
515513

0 commit comments

Comments
 (0)