-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Prepare to add first docstrings checks to the CI #23560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Prepare to add first docstrings checks to the CI #23560
Conversation
Hello @datapythonista! Thanks for submitting the PR.
|
These are the counts of errors of each category. This PR fixes and validates the first two:
I'll create some "good first issues" once this is merged. |
Cool! |
Ah, actually, Travis is timing out on this ... Should we maybe make one build just for all linting? (without running the actual test suite, to have a shorter build) Although you also have some work to move linting to Azure? |
Yes, I'm still thinking what would be the best option, but I think running the code checks in an independent job will make things simpler in the CI files, and moving it to azure will make it easier for users to see the errors. I think building the docs is quite slow too, but may be makes sense to have a job in azure for both, if it's not too long? |
Yes, as long as it is on travis, we need to keep that separate (not add the linting to that), as this can already be quite long. Depending on how far in the future the "moving linting to azure" is, I would maybe here simply move all linting to a new dedicated travis build. |
Moving linting to azure is very close in the future: #22854. :) I just want to think a bit more, if it makes sense to publish the artifacts of a build and save the resources of another conda setup and pandas build, or if that's too much complexity, and we should have an independent build for this. I'd start by the simplest option and have an independent build, but azure was quite slow last days, and I didn't like adding the extra work. Auto-canceling the superseded builds in azure should be ready in the next hours (#23523 (comment)) so I think it's again the best option. |
Codecov Report
@@ Coverage Diff @@
## master #23560 +/- ##
==========================================
- Coverage 92.25% 92.24% -0.02%
==========================================
Files 161 161
Lines 51277 51278 +1
==========================================
- Hits 47305 47299 -6
- Misses 3972 3979 +7
Continue to review full report at Codecov.
|
…idation at this point, as this time outs on travis, and I'll better add it to azure later
@jorisvandenbossche I'm leaving here the fixes to the docstrings, but I removed the validation of docstrings in the CI from this PR. So we avoid time outs with travis. Once this is merged, I'll add the validation to #22854. |
…fixed * upstream/master: DOC: Fixes to docstring to add validation to CI (pandas-dev#23560) DOC: Remove incorrect periods at the end of parameter types (pandas-dev#23600) MAINT: tm.assert_raises_regex --> pytest.raises (pandas-dev#23592) DOC: Updating Series.resample and DataFrame.resample docstrings (pandas-dev#23197) ENH: Support for partition_cols in to_parquet (pandas-dev#23321) TST: Use intp as expected dtype in IntervalIndex indexing tests (pandas-dev#23609)
* upstream/master: BUG: Casting tz-aware DatetimeIndex to object-dtype ndarray/Index (pandas-dev#23524) BUG: Delegate more of Excel parsing to CSV (pandas-dev#23544) API: DataFrame.__getitem__ returns Series for sparse column (pandas-dev#23561) CLN: use float64_t consistently instead of double, double_t (pandas-dev#23583) DOC: Fix Order of parameters in docstrings (pandas-dev#23611) TST: Unskip some Categorical Tests (pandas-dev#23613) TST: Fix integer ops comparison test (pandas-dev#23619) DOC: Fixes to docstring to add validation to CI (pandas-dev#23560) DOC: Remove incorrect periods at the end of parameter types (pandas-dev#23600) MAINT: tm.assert_raises_regex --> pytest.raises (pandas-dev#23592) DOC: Updating Series.resample and DataFrame.resample docstrings (pandas-dev#23197)
Fixing some docstring issues, so CI doesn't fail when we add the first validation of docstrings in #22854.
git diff upstream/master -u -- "*.py" | flake8 --diff