repology / repology-rules

Package normalization ruleset for Repology
https://repology.org
GNU General Public License v3.0
106 stars 121 forks source link

Update ruff package homepage #789

Closed TheRealKeto closed 6 months ago

TheRealKeto commented 6 months ago

ruff has a new established homepage that many package mangers have adopted. This change allows Repology to correctly categorize packages with the new homepage.

I thought the best approach was to use the following below mostly since there's the ruff repo (from github[dot]com, which would match with astral-sh) and the ruff homepage (which would match with astral.sh)

- { name: ruff, wwwpart: ruff.rs, wwwpat: astral(\\-|\\.)sh, setname: ruff-python-linter }

However, I'm unaware of the complications between using both wwwpart and wwwpat, so just appending the new homepage to wwwpart should do the trick.

AMDmi3 commented 6 months ago

However, I'm unaware of the complications between using both wwwpart and wwwpat

These are independent conditions, using both would involve AND logic and it would match nothing. Appending to wwwpart is correct and also more readable, thank you!