Uh oh!
There was an error while loading. Please reload this page.
Add Ruff rule N802 (invalid-function-name) - #1263
Open
Abhayindia wants to merge 3 commits into
Open
Conversation
Abhayindia
requested review from
genedan, henrydingliu, jbogaardt and kennethshsu
as code ownersSeptember 2, 2026 11:11
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): 0.0% fully typed (0 / 2); 2 no longer exported
Patch symbol details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #1263 +/- ##
=======================================
Coverage 91.70% 91.70% =======================================
Files 93 93 Lines 5435 5435 Branches 699 699 =======================================
Hits 4984 4984 Misses 327 327 Partials 124 124
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
henrydingliu
commented
Sep 2, 2026
Member
looks good. please resolve conflict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Adds the
N802rule (invalid-function-name).Per the issue, the test-suite functions are renamed:
test_OXDX_triangle->test_oxdx_triangle,test_IBNR_methods->test_ibnr_methods. Touchingtest_incremental.pypulls the whole file into the check, so it also drops an unused local and getsruff format.test_1D_nanquantileintest_sparse.pyis left for now - that file has ~70 other ruff violations, so its rename belongs with a full cleanup of it.The codebase functions are excluded rather than renamed, for the "good reason" you mentioned:
_prep_X_ml,_check_X,validate_Xuse scikit-learn's uppercase-Xdesign-matrix convention (validate_Xand_prep_X_mlare also called across modules)_G,G_mirror Clark 2003's growth-functionG(G_appears in theClarkLDFdocstring's doctest)_get_MCL_model/_get_MCL_resids/_get_MCL_lambda(Munich Chain Ladder),_fit_OLS/_fit_OLS_thru_orig,PTF_formula,pZlowerare internal helpers using standard statistical abbreviationschapter_7_part_2.ipynb'sExNShtNexhibit functions are excluded too (that file also overlaps with #1223).Related GitHub Issue(s)
Closes#1237
Additional Context for Reviewers
ruff check/ruff formatwith N802 is clean project-wide apart from the grandfathered files. The two renamed tests pass locally.