mirror of
https://github.com/vinta/awesome-python.git
synced 2026-08-04 07:03:57 +00:00
style(website): apply ruff format
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
432a1f4b71
commit
3d99f7336d
4 changed files with 28 additions and 42 deletions
|
|
@ -17,18 +17,12 @@ class TestExtractGithubRepos:
|
|||
assert result == {"psf/requests"}
|
||||
|
||||
def test_multiple_repos(self):
|
||||
readme = (
|
||||
"* [requests](https://github.com/psf/requests) - HTTP.\n"
|
||||
"* [flask](https://github.com/pallets/flask) - Micro."
|
||||
)
|
||||
readme = "* [requests](https://github.com/psf/requests) - HTTP.\n* [flask](https://github.com/pallets/flask) - Micro."
|
||||
result = extract_github_repos(readme)
|
||||
assert result == {"psf/requests", "pallets/flask"}
|
||||
|
||||
def test_deduplicates(self):
|
||||
readme = (
|
||||
"* [a](https://github.com/org/repo) - A.\n"
|
||||
"* [b](https://github.com/org/repo) - B."
|
||||
)
|
||||
readme = "* [a](https://github.com/org/repo) - A.\n* [b](https://github.com/org/repo) - B."
|
||||
result = extract_github_repos(readme)
|
||||
assert result == {"org/repo"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue