added stylecheck job to github action
This commit is contained in:
1 parent
3652cebd9f
commit
2d5551b80d
3 files changed
+21
-5
No files matched your search
@@ -2,18 +2,17 @@ import bs4
|
||||
from .formatters import formatters
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
with open("test.html", "r") as file:
|
||||
soup = bs4.BeautifulSoup(file, "html.parser")
|
||||
|
||||
for formatter in formatters:
|
||||
formatter.format(soup)
|
||||
|
||||
formatter = bs4.formatter.HTMLFormatter(indent=4)
|
||||
with open("out.html", "w") as file:
|
||||
file.write("{% load static %}\n")
|
||||
file.write(soup.prettify(formatter=formatter))
|
||||
file.write(soup.prettify(formatter=bs4.formatter.HTMLFormatter(indent=4)))
|
||||
|
||||
|
||||
def command_entry():
|
||||
def command_entry() -> None:
|
||||
print("ok")
|
||||
Reference in new issue
Block a user