René's URL Explorer Experiment


Title: Add exponential function spacing option by pullfrog[bot] · Pull Request #1 · pullfrog/python-black · GitHub

Open Graph Title: Add exponential function spacing option by pullfrog[bot] · Pull Request #1 · pullfrog/python-black

X Title: Add exponential function spacing option by pullfrog[bot] · Pull Request #1 · pullfrog/python-black

Description: Summary This PR adds a new --exponential-function-spacing flag that applies exponentially increasing blank lines between function definitions to discourage developers from creating too many functions in a single file. Behavior When enabled, the spacing follows the pattern 2^n where n is the function index (0-based): 1st to 2nd function: 1 blank line (2^0) 2nd to 3rd function: 2 blank lines (2^1) 3rd to 4th function: 4 blank lines (2^2) 4th to 5th function: 8 blank lines (2^3) And so on... Example Before: def first_function(): pass def second_function(): pass def third_function(): pass After (with --exponential-function-spacing): def first_function(): pass def second_function(): pass def third_function(): pass Changes Added exponential_function_spacing boolean field to Mode class Updated Mode.__hash__ and get_cache_key to include new field Added function_count_at_depth tracking to EmptyLineTracker Modified empty line calculation logic to apply exponential spacing Added --exponential-function-spacing CLI option Test Plan All existing tests pass Manual testing with sample files confirms exponential spacing behavior Feature works correctly at different indentation depths   | Triggered by Pullfrog | Using Claude Code | View workflow run | pullfrog.com | 𝕏

Open Graph Description: Summary This PR adds a new --exponential-function-spacing flag that applies exponentially increasing blank lines between function definitions to discourage developers from creating too many functio...

X Description: Summary This PR adds a new --exponential-function-spacing flag that applies exponentially increasing blank lines between function definitions to discourage developers from creating too many functio...

Opengraph URL: https://github.com/pullfrog/python-black/pull/1

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fa858cd3-59ee-f830-3477-e65e4a920066
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87A2:358701:30702B2:3F2084E:6AF9CE46
html-safe-noncecb104193025def7b69dbf590dbcaaa0c1fb0e6924a33cbfc166625438797f094
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0EyOjM1ODcwMTozMDcwMkIyOjNGMjA4NEU6NkFGOUNFNDYiLCJ2aXNpdG9yX2lkIjoiMzk1Njk1ODIwNzczMjczMTQ2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac416fd959951b56cd9b911ea3ec4abc3fc6fe2f561deb68a67878dc0f3f111309
hovercard-subject-tagpull_request:3117910701
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pullfrog/python-black/pull/1/files
twitter:imagehttps://avatars.githubusercontent.com/in/1768019?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1768019?s=400&v=4
og:image:altSummary This PR adds a new --exponential-function-spacing flag that applies exponentially increasing blank lines between function definitions to discourage developers from creating too many functio...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pullfrog/python-black git https://github.com/pullfrog/python-black.git
octolytics-dimension-user_id223181266
octolytics-dimension-user_loginpullfrog
octolytics-dimension-repository_id1119611790
octolytics-dimension-repository_nwopullfrog/python-black
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id125266328
octolytics-dimension-repository_parent_nwopsf/black
octolytics-dimension-repository_network_root_id125266328
octolytics-dimension-repository_network_root_nwopsf/black
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pullfrog/python-black/pull/1/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpullfrog%2Fpython-black%2Fpull%2F1%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpullfrog%2Fpython-black%2Fpull%2F1%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=pullfrog%2Fpython-black
Reloadhttps://github.com/pullfrog/python-black/pull/1/files
Reloadhttps://github.com/pullfrog/python-black/pull/1/files
Reloadhttps://github.com/pullfrog/python-black/pull/1/files
pullfroghttps://github.com/pullfrog
python-blackhttps://github.com/pullfrog/python-black
Codehttps://github.com/pullfrog/python-black
Pull requests1 (1)https://github.com/pullfrog/python-black/pulls
Actionshttps://github.com/pullfrog/python-black/actions
Projectshttps://github.com/pullfrog/python-black/projects
Security and qualityhttps://github.com/pullfrog/python-black/security
Insightshttps://github.com/pullfrog/python-black/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpullfrog%2Fpython-black%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpullfrog%2Fpython-black%2Fissues%2Fnew%2Fchoose
pullfroghttps://github.com/apps/pullfrog
mainhttps://github.com/pullfrog/python-black/tree/main
pullfrog/exponential-function-spacinghttps://github.com/pullfrog/python-black/tree/pullfrog/exponential-function-spacing
Conversation 2 https://github.com/pullfrog/python-black/pull/1
Commits 1 https://github.com/pullfrog/python-black/pull/1/commits
Checks 50 https://github.com/pullfrog/python-black/pull/1/checks
Files changed https://github.com/pullfrog/python-black/pull/1/files
Please reload this pagehttps://github.com/pullfrog/python-black/pull/1/files
Add exponential function spacing option https://github.com/pullfrog/python-black/pull/1/files#top
Show all changes 1 commit https://github.com/pullfrog/python-black/pull/1/files
7915bc6 Add exponential function spacing option Dec 19, 2025 https://github.com/pullfrog/python-black/pull/1/commits/7915bc61345b446ae959c2cb8dc6d281ab81c21f
Clear filters https://github.com/pullfrog/python-black/pull/1/files
Please reload this pagehttps://github.com/pullfrog/python-black/pull/1/files
Please reload this pagehttps://github.com/pullfrog/python-black/pull/1/files
__init__.py https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
lines.py https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
mode.py https://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
src/black/__init__.pyhttps://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
View file https://github.com/pullfrog/python-black/blob/7915bc61345b446ae959c2cb8dc6d281ab81c21f/src/black/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pullfrog/python-black/pull/1/{{ revealButtonHref }}
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
https://github.com/pullfrog/python-black/pull/1/files#diff-d23a6917d7262ca9815093bffb7148299e516575251959ed9b405b648e76aa29
src/black/lines.pyhttps://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
View file https://github.com/pullfrog/python-black/blob/7915bc61345b446ae959c2cb8dc6d281ab81c21f/src/black/lines.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pullfrog/python-black/pull/1/{{ revealButtonHref }}
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
https://github.com/pullfrog/python-black/pull/1/files#diff-e82969837ee87e062540b0e41760ac6536b23c69dc9c8b1afc29783d10888849
src/black/mode.pyhttps://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
View file https://github.com/pullfrog/python-black/blob/7915bc61345b446ae959c2cb8dc6d281ab81c21f/src/black/mode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pullfrog/python-black/pull/1/{{ revealButtonHref }}
https://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
https://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
https://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
https://github.com/pullfrog/python-black/pull/1/files#diff-7f884c298f35a0a81548693340bd838dd8f6a3d649d050cfa7fb5ff978f035ac
Please reload this pagehttps://github.com/pullfrog/python-black/pull/1/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.