GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — Add a 'download' language for fetching pre-built binaries by fangfufu · Pull Request #3020 · pre-commit/pre-commit Conversation
Contributor
This commit implements #1453 (comment)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
please no pathlib, dataclasses, or backslashes -- really you probably don't need any classes at all. I'm also not sure why the strange sha256 -- use hexdigest which is way more standardized. there's a lot of code here and almost zero tests so it's not in a reviewable state -- please convert your PR to draft until you're ready for a first round |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
What do you mean by
The " the strange sha256" is subresource integrity. What do you mean by "no backslashes"? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
your code has a bunch of classes with nontrivial methods -- simple plain-old-data classes is preferred -- check the approaches used by most of the rest of the codebase
just because it is standardized doesn't mean it is good -- we aren't optimizing for http headers where characters are at a minimum so use normal hexdigest which is far more common and much easier to compute
your source code contains many very very ugly backslashes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit implements pre-commit#1453 (comment)
@asottile, normal checksum, i.e. the output from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
what do you mean yes they are |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah never mind, for some reason I thought |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I recently build something similar that has a format I was pretty happy with -- might be able to use that format or similar here: https://github.com/asottile/setuptools-download |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@asottile , do you have a preferred way of handling the different OS and architecture? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
setuptools-download handles that with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.