Skip to content

Commit

Permalink
Add djade linter
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehenry committed Sep 30, 2024
1 parent 7f33ac7 commit 7960c58
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 188 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
black --check .
flake8
isort . --check
djade **/templates/**/*.html **/templates/**/*.mjml
test:
executor: testbed
parallelism: 8
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ repos:
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/adamchainz/djade-pre-commit
rev: 1.1.1
hooks:
- id: djade
args:
- "**/templates/**/*.html"
- "**/templates/**/*.mjml"
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ black = "==24.8.0"
flake8 = "==7.1.1"
pre-commit-hooks = "==4.6.0"
isort = "==5.13.2"
djade = "==1.1.1"
Loading

0 comments on commit 7960c58

Please sign in to comment.