Skip to content

Commit

Permalink
Arm linters and format
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Dec 30, 2024
1 parent 9a25d25 commit a813dda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions bin/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ flake8 freezing
echo "*** mypy ***"
echo "*** djlint ***"
djlint --check freezing/web/templates
echo "*** pymarkdown ***"
pymarkdown scan .
2 changes: 1 addition & 1 deletion freezing/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3>
href="/leaderboard/team_text">{{ team_count }}
{% if team_count == 1 %}
team
{% else %}
{% else %}
teams
{% endif %}
</a>
Expand Down

0 comments on commit a813dda

Please sign in to comment.