From a813dda3847982620d2311d9987b72947ed34b3b Mon Sep 17 00:00:00 2001 From: Richard Bullington-McGuire Date: Mon, 30 Dec 2024 16:10:17 -0500 Subject: [PATCH] Arm linters and format --- README.md | 2 ++ bin/lint.sh | 2 ++ freezing/web/templates/index.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8fb695..b963fcb 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,8 @@ bin/lint.sh bin/fmt.sh ``` +This project also has _optional_ support for [pre-commit](https://pre-commit.org) to run these checks automatically before you commit. To install pre-commit, run `pip install pre-commit` and then `pre-commit install` in the root of the repository. + ## Production deployment See [freezing-compose](https://github.com/freezingsaddles/freezing-compose) for a guide to deploying this in production along diff --git a/bin/lint.sh b/bin/lint.sh index 36ce2ef..0e74391 100755 --- a/bin/lint.sh +++ b/bin/lint.sh @@ -9,3 +9,5 @@ flake8 freezing echo "*** mypy ***" echo "*** djlint ***" djlint --check freezing/web/templates +echo "*** pymarkdown ***" +pymarkdown scan . diff --git a/freezing/web/templates/index.html b/freezing/web/templates/index.html index ef9f4d4..4f286c6 100644 --- a/freezing/web/templates/index.html +++ b/freezing/web/templates/index.html @@ -134,7 +134,7 @@

href="/leaderboard/team_text">{{ team_count }} {% if team_count == 1 %} team - {% else %} + {% else %} teams {% endif %}