docs: give files over 100 MB their route

CONTRIBUTING sent any file over the browser's 25 MB through a clone, which GitHub refuses past 100 MB, and named a release only a maintainer can write to. It now gives the route validate_pr.py prints: an issue with the hashes.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 19:18:38 +01:00
1 parent 46a6ac2675
commit 9e04bf887d
3 files changed
+20 -2

No files matched your search

+11
View File
@@ -97,6 +97,17 @@ class BeforeOpeningAPullRequest(unittest.TestCase):
with self.subTest(package=package):
self.assertRegex(pip_line, rf"\b{package}\b")
def test_a_file_too_large_for_git_has_a_route(self):
"""The guide sent any file over 25 MB through a clone, which GitHub
refuses past 100 MB, and only a maintainer can write to the release."""
import validate_pr
text = generate_readme.generate_contributing()
section = text.split("## What happens next", 1)[1].split("\n## ", 1)[0]
self.assertEqual(validate_pr.MAX_FILE_SIZE, 100 * 1024 * 1024)
self.assertIn("100 MB", section)
self.assertIn(f"]({validate_pr.LARGE_FILE_ISSUE_URL})", section)
def test_it_installs_what_the_checks_need_and_no_site_package(self):
"""The site is built by Node from website/package-lock.json: a pip
line naming the old theme installed packages nothing reads."""