mahmoud / awesome-python-applications

💿 Free software that works great, and also happens to be open-source Python.
ftp://you:relookin@it#readme
16.79k stars 2.68k forks source link

LinkChecker Update #149

Closed cam-barts closed 4 years ago

cam-barts commented 4 years ago

I've made some changes to the linkchecker action to address it failing all the time. Here's a summary:

I marked this PR with WIP because I'd love your feedback on the functionality. I mentioned the params change in the future, and I am also open to looking for the exclude_links.json being somewhere that might make some more sense (like the .github folder might be better). Since you are the first one to consume this action, I'd really love to know how you think I could make this better for you, and hopefully for future awesome lists.

mahmoud commented 4 years ago

Hey! This is great!

So my first thought was that, yes, this is best in the .github folder.

Second thought, should "code" also accept a list, or maybe a wildcard? Or is empty/null equivalent to wildcard? I also think it'd be great if the time could be ISO formatted, for readability. datetime.isoformat(), basically (I usually drop the microseconds, but that's just me :) ).

My other thoughts aren't really specific to this PR, I think it's a pretty strong improvement, I'd start using it as soon as the .github folder is in the mix.

That said, if we're adding a .github config though... I still think it'd be nifty to specify which file(s) in the repo to check. This would not only improve output, but probably double the perf, as the APA repeats the links in multiple files. As such, I was going to recommend a more unified and extensible config. .github/linkchecker_config.json, with a key for ignored_links or ignored_errors.

Great work again, and thanks for following up!

mahmoud commented 4 years ago

Hey @cam-barts! How's it going? Any luck?

cam-barts commented 4 years ago

Hey @mahmoud, haven't had a whole lot of time at my desk recently, but it should be done by Wednesday if that's alright

mahmoud commented 4 years ago

Of course! I'll check back Wed/Thurs :)

cam-barts commented 4 years ago

Alrighty, this time around I've:

mahmoud commented 4 years ago

Nice! So, I still see [WIP] on the ticket name, do you intend to do more on this ticket or should we take it out for a spin?

cam-barts commented 4 years ago

There are still some housekeeping changes I was going to make to the actual linkchecker app, and I am still open to more feedback, but I think its fine to go for now

mahmoud commented 4 years ago

If it's fine to go, I'll give it a go! Thanks, and always looking forward to the next!