Add pre-commit
This commit is contained in:
parent
4c16d14e61
commit
927e20c9bb
5 changed files with 90 additions and 20 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue