Closed krachyon closed 2 years ago
I am having issues trying to understand the second points:
Data originally checked into and subsequently removed is still visible/available in the history, so every clone of the repository will still download the files. If you didn't plan on publishing it, you should re-write the repository history with something like an interactive rebase.
Are you talking about files that are no longer needed but are saved in the history? Could you please rephrase this?
Are you talking about files that are no longer needed but are saved in the history? Could you please rephrase this?
Yes, when looking at the git-history you can still see (and access) e.g. images/SN2006bh/PS1_g.fits
, the file's contents are still automatically downloaded when the repository is cloned. If you happen to change them slightly, all versions that once existed have to be transferred on clone, this can blow up your repository size very quickly and is why typically you should not add binaries to version control.
If those files are something you did not want to publish, you'll have to delete them from the history. Some context and a solution to do that are here https://stackoverflow.com/questions/58161926/permanently-removing-a-file-from-git-history
In a recent commit you commented out the __pycache__
entry in .gitignore, these dirs should not be added to version control. They contain machine-specific information like &/home/tomas/hostphot/tests/__init__.py
which can cause pretty confusing errors for others.
Thanks, I will remove this as well.
I'll mark this as resolved with the review done...
Basing this on commit 011333f84486614cb9339d3874dc072c45ebed23, using
Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux
A few things are missing from your readme:
Data originally checked into and subsequently removed is still visible/available in the history, so every clone of the repository will still download the files. If you didn't plan on publishing it, you should re-write the repository history with something like an interactive rebase.
There are a bunch of issues reported by
pylint
,flake8
andcheck-manifest
. I'd suggest running something likeautopep8
orblack
on the code, that should fix the majority of issues. If you really want to deviate from the pep8 style, you should include the relevant linter config files as part of the repository (they seem to be manually selected in the gitub-ci config?), so the checks can be run locally. A tool liketox
would be a helpful addition so that one can check their work with a single command before they commit/push.python -m unittest tests/*
creates a load of warnings relating to the fits-file handling. It fails with the following messagewhen running tests with
pytest
(as I think it was intended?), some warnings remain. I suggest silencing the warnings you expect to happen so a new warning introduced by future additions will actually be spotted.