This commit is contained in:
Will Abbott 2024-07-05 23:38:25 +01:00
parent 40ca698013
commit 5fb5b359f6
5 changed files with 2 additions and 13 deletions

View file

@ -1,13 +1,6 @@
[project]
name = "cotton-dev-app"
requires-python = ">=3.8, <4"
dependencies = [
"django~=4.2.6",
"beautifulsoup4~=4.12.2",
"selenium~=4.13.0",
"chromedriver-py~=117.0.5938.92",
"webdriver-manager~=4.0.1"
]
[tool.poetry]
name = "cotton-dev-app"
@ -18,7 +11,4 @@ authors = ["Will Abbott <willabb83@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.8"
Django = "^4.2"
beautifulsoup4 = "~4.12.2"
selenium = "~4.13.0"
chromedriver-py = "~117.0.5938.92"
webdriver-manager = "~4.0.1"
beautifulsoup4 = "~4.12.2"

View file

@ -56,7 +56,7 @@ def benchmark_template_rendering(template_name, iterations=1000):
# Benchmarking each template
time_native_extends, output_native_extends = benchmark_template_rendering(
"cotton/benchmarks/native_extends.html"
"benchmarks/native_extends.html"
)
time_compiled_cotton, output_compiled_cotton = benchmark_template_rendering(
"cotton/benchmarks/cotton_compiled.html"

View file

@ -85,7 +85,6 @@ class Loader(BaseLoader):
class UnsortedAttributes(HTMLFormatter):
def attributes(self, tag):
for k, v in tag.attrs.items():
# remove any new lines in v
yield k, v