Skip to content

Commit

Permalink
fix pre-commit ci (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-park authored Jan 19, 2024
1 parent dba821e commit 1e6e332
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,6 @@ cython_debug/

.DS_Store
.zed

# Vscode
.vscode
12 changes: 8 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
repos:
- repo: https://github.com/rtts/djhtml
rev: '3.0.6'
- repo: local
hooks:
- id: djhtml
entry: djhtml --tabwidth 2 templates
- id: format
name: format
stages: [commit]
entry: pdm
args: ['format']
language: system
pass_filenames: false
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ plugins = ["pdm-autoexport"]
dev = "flask --app app run --debug"
test = "pytest -n auto"
run_black = "black ."
djhtml = "djhtml --tabwidth 2 templates"
djhtml.cmd = "djhtml --tabwidth 2 templates"
djhtml.env = {PYTHONUTF8 = "1"}
format = {composite = ["run_black", "djhtml"]}

[tool.pdm.dev-dependencies]
Expand Down

0 comments on commit 1e6e332

Please sign in to comment.