A bit of cleanup / infrastructure#1
Conversation
…pt added with `scripts`
|
Here's some issues that my editor (Eclipse PyDeV) points out in @lpaioro Are these real issues? Can you fix them? |
|
@cdeil - it's not currently possible to see full diff as it indicates there are a lot of changes. Any ideas on how we can see them easily? |
|
That's because I ran Probably best to look at each commit except that one individually. |
|
Ok, so maybe the solution is to look though the individual ones and just trust the autopep8 one since it's still too large (or use diff -w locally to ignore whitespace changes). |
|
@cdeil - I tried to have a look at the diff for the autopep8 offline, and I think that you should not let it shorten lines for now, as the result is not always more readable (it's the one PEP8 thing where we are not systematic). I would recommend using: and then leaving line wrapping for now. This will also make the diff simpler, because then most of the changes will be whitespace, and it's possible to silence those. In fact, I'd even recommend we keep the PEP8 in a separate pull request, because it'll then be much easier to review the actual changes here. Do you think you could easily just take out the autopep8 from here and then once this is merged, you can open a new PR with autopep8 (with the ignore clause to avoid automatically wrapping lines?) |
|
I made a new PR without the autopep8 changes: Let's try to get |
@lpaioro Here's some cleanup and I've added a first unit test. You can comment on things you don't like on github and tell me to change them. Or if you like the changes you can pull them into your branch by hitting the merge button on github.
The unit test fails. You can run it via
from the top-level astropy folder to see what the problem is.
@astrofrog If you have time to have a look that would be good.
I guess the first goal should be to get this unit test and the
sampycommand line tool working. Then we can do further re-structuring, e.g. I probablycore.pyshould only contain the classes and the script should be in a separate file.