Add pre-commit

This commit is contained in:
Joakim Hellsén 2024-03-15 13:42:45 +01:00
commit 927e20c9bb
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
5 changed files with 90 additions and 20 deletions

View file

@ -10,10 +10,10 @@ class StaticViewSitemap(Sitemap):
changefreq: str = "daily"
priority: float = 0.5
def items(self: StaticViewSitemap) -> list[str]: # noqa: PLR6301
def items(self: StaticViewSitemap) -> list[str]:
"""Return all the items in the sitemap."""
return ["feeds:index", "feeds:feeds", "feeds:domains"]
def location(self: StaticViewSitemap, item: str) -> str: # noqa: PLR6301
def location(self: StaticViewSitemap, item: str) -> str:
"""Return the location of the item."""
return reverse(item)