-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Refactor: Make kwargs keyword only #2661
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2661 +/- ##
=======================================
Coverage 69.17% 69.17%
=======================================
Files 304 304
Lines 22524 22524
=======================================
Hits 15580 15580
Misses 6944 6944
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
05f2ce5
to
beba33e
Compare
Would you'll prefer one large PR for this refactoring, or grouping up the refactors into 2-3 smaller PRs to make reviewing a bit easier? |
One big PR is great, thanks! |
99e0f44
to
f213e84
Compare
CI-devtest failures seem to not be associated with these refactors (https://github.com/astropy/astroquery/actions/runs/4160273194) so I'm just going to proceed with the refactors. It seems to be a bigger issue with rust compilation in deps. |
Perfectly fine to leave anything non-trivial for later. |
If you want I'll resolve the conflicts with gaia and then mark this ready for review, and just tackle the problematic refactors on an individual basis. |
Sounds good. I've also looked into the diff, and if there is any way to revert and squash all the changes that black did to formatting, it would be awesome. There are quite a lot of places where it expanded 3 lines into 20 without adding anything to it, and that's the cause of bloating up the diff to the order of hundreds of lines. As I see most of the commits are fine, and you did it very modularly, so it's also fine to cherry pick the affected ones ou from this branch, etc. |
I'll work on cleaning it up. |
10b93fe
to
13e2d41
Compare
Cleaned this up as best as I could. |
Thanks! The ibe module is the only one left out (4 files), and it will need a rebase given the 2 unrelated commit from Also, these changes will need a changelog, but I'm thinking about having one changelog that covers all the modules, so we'll just do that before the release listing all the PRs going these kind of changes. |
53287f7
to
034f3a0
Compare
Ibe is cleaned up, I'll leave the changelog and rebasing up to you. |
8d95489
to
1b1670a
Compare
Thanks @nkphysics! |
This addresses #1746.
At the present time of drafting this PR, refactors to make optional kwargs keyword only have been applied to the following:
# doctest: +IGNORE_OUTPUT
for re-emerging issue from BUG: failing remote tests Q1 2023 #2634 that was addressed in MAINT: Fixing HEASARC and IMCCE docs issue #2652 )Problematic refactors (handle later/ require more scrutiny):